systemd: add unit files for pump_mqtt_bot and relay_mqtt_bot
This commit is contained in:
parent
14f885f1a7
commit
57909a9269
12
systemd/pump_mqtt_bot.service
Normal file
12
systemd/pump_mqtt_bot.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=homekit pump_mqtt_bot
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
User=user
|
||||
WorkingDirectory=/home/user
|
||||
ExecStart=/home/user/homekit/src/pump_mqtt_bot.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
12
systemd/relay_mqtt_bot.service
Normal file
12
systemd/relay_mqtt_bot.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=homekit relay_mqtt_bot
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
User=user
|
||||
WorkingDirectory=/home/user
|
||||
ExecStart=/home/user/homekit/src/relay_mqtt_bot.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user