wassgha / digital-signage

📺 Simple self-hosted digital signage software for turning screens into beautiful content displays
https://wassgha.github.io/digital-signage/
MIT License
161 stars 81 forks source link

possibility to run as service #13

Closed jhjacobs81 closed 4 years ago

jhjacobs81 commented 4 years ago

Would be nice to run this as a service, so that its beeing started automaticly after a reboot.

jhjacobs81 commented 4 years ago

i managed to run it as a service by creating the following service file:

[Unit] Description="Narrow Casting"

[Service] ExecStart=/usr/bin/npm run dev WorkingDirectory=/srv/narrowcasting Restart=always RestartSec=10 StandardOutput=syslog StandardError=syslog SyslogIdentifier=NarrowCasting

[Install] WantedBy=multi-user.target

=============== Hopefully it will be of use for someone else 👍