infra: add systemd service for service restart
All checks were successful
Deploy eolas-api / deploy (push) Successful in 24s
All checks were successful
Deploy eolas-api / deploy (push) Successful in 24s
This commit is contained in:
parent
f5a1e3f1a8
commit
9d7610df01
1 changed files with 13 additions and 0 deletions
13
systemd/eolas-api.service
Normal file
13
systemd/eolas-api.service
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=eolas-api
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=deploy
|
||||||
|
WorkingDirectory=
|
||||||
|
ExecStart=/home/deploy/.nvm/versions/node/v24.10.0/bin/node npm run start
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Add table
Reference in a new issue