has.service 414 B

1234567891011121314151617181920
  1. [Unit]
  2. Description=Home Automation Service
  3. After=syslog.target
  4. After=network.target
  5. After=influx.service
  6. [Service]
  7. WorkingDirectory=/var/www/automation
  8. ExecStart=/usr/bin/dotnet /var/www/automation/HAServer.dll
  9. Restart=always
  10. # Restart service after 10 seconds if the dotnet service crashes:
  11. RestartSec=10
  12. KillSignal=SIGINT
  13. SyslogIdentifier=HAS
  14. User=www-data
  15. Group=www-data
  16. [Install]
  17. WantedBy=multi-user.target