From 7aed87a0536d936d0728617b0decfb3722bf637f Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Mar 2017 18:41:19 +0800 Subject: [PATCH] add init script --- initscript/systemd/webio.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 initscript/systemd/webio.service diff --git a/initscript/systemd/webio.service b/initscript/systemd/webio.service new file mode 100644 index 0000000..ef83b0b --- /dev/null +++ b/initscript/systemd/webio.service @@ -0,0 +1,11 @@ +[Unit] +Description=JCNet WebIO + +[Service] +ExecStart=/usr/bin/node /home/node/webio/app.js +Restart=always +User=root +Environment="NODE_ENV=production" + +[Install] +WantedBy=multi-user.target \ No newline at end of file