summaryrefslogtreecommitdiffstats
path: root/systemd/cytube.service
blob: cfb507df3e8ec2f18e9f96b56a14b6bebb5a0e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=CyTube
After=network.target mysqld.service

[Service]
Type=simple
User=cytube
Group=cytube
WorkingDirectory=/opt/cytube/sync/
Environment=NODE_ENV=production
ExecStart=/opt/cytube/.nvm/versions/node/v14.17.0/bin/node /opt/cytube/sync/index.js
Restart=always

[Install]
WantedBy=multi-user.target