Merge branch '218-convert-existing-utilities-into-services' into 'master'

Add service files for systemd #218

Closes #218

See merge request jankstudio/resq!256
This commit is contained in:
Kendrick Chan 2019-05-29 15:32:21 +00:00
commit 782a41b645
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