system/systemd/cytube.service

16 lines
315 B
SYSTEMD
Raw Permalink Normal View History

[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