From 909365aafdd9194f225d25abb8c70606514d8df3 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 15 Sep 2017 07:14:38 -0400 Subject: [PATCH] Added system-v service file --- services/nodeodm.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 services/nodeodm.service diff --git a/services/nodeodm.service b/services/nodeodm.service new file mode 100644 index 0000000..921c533 --- /dev/null +++ b/services/nodeodm.service @@ -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 +