add init script

This commit is contained in:
Jay 2017-03-23 18:41:19 +08:00
parent fdaf0ce5c6
commit 7aed87a053

View File

@ -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