systemd script

This commit is contained in:
Wolfgang Hottgenroth 2018-05-23 21:11:44 +02:00
parent 04470228af
commit 4ab474b2db
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

18
homepage.service Normal file
View File

@ -0,0 +1,18 @@
[Unit]
Description=homepage
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
GuessMainPID=yes
ExecStart=/usr/bin/npm start -- -c homepage.conf
ExecStop=kill -SIGINT $mainpid
Restart=on-failure
WorkingDirectory=/opt/services/homepage
[Install]
Alias=homepage
WantedBy=multi-user.target