Browse Source

Add unit file

Johannes Zellner 6 years ago
parent
commit
a0bf982703
1 changed files with 13 additions and 0 deletions
  1. 13 0
      growcam.service

+ 13 - 0
growcam.service

@@ -0,0 +1,13 @@
+[Unit]
+Description=Growcam
+After=network.target
+
+[Service]
+WorkingDirectory=/home/nebulon/growcam
+ExecStart=exec /usr/bin/node /home/nebulon/growcam/index.js
+Restart=always
+Environment="PORT=80"
+User=root
+
+[Install]
+WantedBy=multi-user.target