add initscript for systemd
This commit is contained in:
parent
aa621b4ff8
commit
86e3591cce
12
initscript/systemd/ddns.service
Normal file
12
initscript/systemd/ddns.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=NodeJS ConoHa DNS API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=node /home/ddns/app.js
|
||||
Restart=always
|
||||
User=root
|
||||
Environment="NODE_ENV=production"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user