21 lines
635 B
Desktop File
21 lines
635 B
Desktop File
# If you modify this, please also make sure to edit init.sh
|
|
|
|
[Unit]
|
|
Description=Zway-Bot manage a Zwave.me installation so that it has more features
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User=zwaybot
|
|
Group=zwaybot
|
|
WorkingDirectory=/usr/local/bin/zwaybot
|
|
# ExecStartPre=/bin/rm /var/log/zwaybot.log && /bin/touch /var/log/zwaybot.log && /bin/chown zwaybot:zwaybot /var/log/zwaybot.log && /bin/chmod 644 /var/log/zwaybot.log
|
|
ExecStart=/usr/bin/mono /usr/local/bin/zwaybot/Zway-Bot.exe
|
|
KillMode=control-group
|
|
Restart=on-failure
|
|
StandardOutput=null
|
|
StandardError=syslog+journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=zwaybot.service
|