improve unit file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
moshing-mammut.pid
|
||||||
yt_auth_token
|
yt_auth_token
|
||||||
spotify_auth_token
|
spotify_auth_token
|
||||||
*.db
|
*.db
|
||||||
|
@ -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
|
@ -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 &
|
Reference in New Issue
Block a user