Added system-v service file

pull/23/head
Piero Toffanin 2017-09-15 07:14:38 -04:00
rodzic f70e78aa4e
commit 909365aafd
1 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,16 @@
[Unit]
Description=Start node-ODM Service Container
[Service]
Type=simple
PIDFile=/run/nodeodm.pid
User=odm
Group=odm
WorkingDirectory=/www
ExecStart=/usr/bin/node index.js
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target