updated init script
This commit is contained in:
parent
d8c96aad74
commit
f1b47589e6
2 changed files with 22 additions and 3 deletions
13
setup/mailtrain.service
Normal file
13
setup/mailtrain.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
Description=Mailtrain server
|
||||
Requires=After=mysql.service
|
||||
|
||||
[Service]
|
||||
Environment="NODE_ENV=production"
|
||||
WorkingDirectory=/opt/mailtrain
|
||||
ExecStart=/usr/bin/node index.js >> /var/log/mailtrain.log 2>&1
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue