add init script
This commit is contained in:
parent
fdaf0ce5c6
commit
7aed87a053
11
initscript/systemd/webio.service
Normal file
11
initscript/systemd/webio.service
Normal 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
|
Loading…
Reference in New Issue
Block a user