1234567891011121314151617181920 |
- [Unit]
- Description=Home Automation Service
- After=syslog.target
- After=network.target
- After=influx.service
- [Service]
- WorkingDirectory=/var/www/automation
- ExecStart=/usr/bin/dotnet /var/www/automation/HAServer.dll
- Restart=always
- # Restart service after 10 seconds if the dotnet service crashes:
- RestartSec=10
- KillSignal=SIGINT
- SyslogIdentifier=HAS
- User=www-data
- Group=www-data
- [Install]
- WantedBy=multi-user.target
|