improve unit file

This commit is contained in:
2025-07-06 18:42:32 +02:00
parent c57f9ec3ea
commit 260cef7b73
3 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
moshing-mammut.pid
yt_auth_token yt_auth_token
spotify_auth_token spotify_auth_token
*.db *.db

View File

@ -1,14 +1,17 @@
[Unit] [Unit]
Description=Moshing Mammut Description=Moshing Mammut
After=network.target
[Service] [Service]
ExecStart=/home/moshing-mammut/app/start.sh ExecStart=/home/moshing-mammut/app/start.sh
Restart=always Restart=on-failure
User=moshing-mammut User=moshing-mammut
Group=moshing-mammut Group=moshing-mammut
Environment=PATH=/usr/bin:/usr/local/bin Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production Environment=NODE_ENV=production
WorkingDirectory=/home/moshing-mammut/app WorkingDirectory=/home/moshing-mammut/app
Type=forking
PIDFile=/home/moshing-mammut/app/moshing-mammut.pid
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
. /home/moshing-mammut/.nvm/nvm.sh . /home/moshing-mammut/.nvm/nvm.sh
node -r dotenv/config build node -r dotenv/config build &