Browse Source

Add unit file

Johannes Zellner 6 năm trước cách đây
mục cha
commit
a0bf982703
1 tập tin đã thay đổi với 13 bổ sung và 0 xóa
  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