Add service files for systemd #218
This commit is contained in:
parent
4879503476
commit
d9d1b3d9f5
2 changed files with 24 additions and 0 deletions
12
utils/apns_sender/apns_sender.service
Normal file
12
utils/apns_sender/apns_sender.service
Normal 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
|
||||
12
utils/mqtt_sender/mqtt_sender.service
Normal file
12
utils/mqtt_sender/mqtt_sender.service
Normal 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
|
||||
Loading…
Reference in a new issue