Skip to content

Commit

Permalink
Added system-v service file
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Sep 15, 2017
1 parent f70e78a commit 909365a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions services/nodeodm.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 909365a

Please sign in to comment.