Add service files for systemd #218

This commit is contained in:
Kendrick Chan 2019-05-29 23:31:34 +08:00
parent 4879503476
commit d9d1b3d9f5
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