- nano /etc/systemd/system/cloning-vat.service
[Service]
WorkingDirectory=/home/shared/cloning-vat/
ExecStart=/usr/bin/npm start
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=cloning-vat
User=nodejs
Group=nodejs
Environment=NODE_ENV=development
[Install]
WantedBy=multi-user.target
- systemctl daemon-reload
- systemctl enable cloning-vat
- systemctl start cloning-vat
Nincsenek megjegyzések:
Megjegyzés küldése