add initscript for systemd

This commit is contained in:
Jay 2017-03-13 22:46:12 +08:00
parent aa621b4ff8
commit 86e3591cce

View 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