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
spotify_auth_token
*.db

View File

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

View File

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