Add service files for systemd #218 #1067

Merged
jankstudio merged 1 commit from 218-convert-existing-utilities-into-services into master 2019-05-29 15:32:29 +00:00
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=Apple Push Notification Sender Service
After=mosquitto.service redis.service
[Service]
Type=simple
ExecStart=/usr/bin/python /root/www/resq/utils/apns_sender/new_sender.py
StandardInput=tty-force
Restart=always
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,12 @@
[Unit]
Description=MQTT Sender Service
After=mosquitto.service redis.service
[Service]
Type=simple
ExecStart=/usr/bin/python /root/www/resq/utils/mqtt_sender/mqtt_sender.py
StandardInput=tty-force
Restart=always
[Install]
WantedBy=multi-user.target