Fixes in install script on CentOS 7
This commit is contained in:
parent
418dba7b9f
commit
c3edf42ada
2 changed files with 24 additions and 3 deletions
16
setup/mailtrain-centos7.service
Normal file
16
setup/mailtrain-centos7.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Mailtrain server
|
||||
Requires=mariadb.service
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Environment="NODE_ENV=production"
|
||||
WorkingDirectory=/opt/mailtrain
|
||||
ExecStart=/usr/bin/node index.js
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
# Alias=mailtrain.service
|
Loading…
Add table
Add a link
Reference in a new issue