Add systemd unit

This commit is contained in:
Mattéo Delabre 2020-11-29 02:06:21 +01:00
parent 24b41da6d1
commit 615ddb8a84
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
[Unit]
Description=youtube-maze - Explore YouTube mazes in which viewers can make choices between at the end of each video
Documentation=https://forge.delab.re/matteo/youtube-maze
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/node /home/admins/youtube-maze/bin/www.mjs
WorkingDirectory=/home/admins/youtube-maze
User=nobody
Group=nogroup
Environment=PORT=8000
Environment=NODE_ENV=production
LimitNOFILE=infinity
StandardInput=null
StandardOutput=syslog
StandardError=syslog
Restart=always
[Install]
WantedBy=multi-user.target