Added service
This commit is contained in:
parent
04c49956fe
commit
01b63c6b6d
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@ tls_key.pem
|
||||
tls_cert.pem
|
||||
.DS_Store
|
||||
._*
|
||||
deploy.sh
|
||||
deploy.sh
|
||||
._.DS_Store
|
||||
20
haraka.service
Normal file
20
haraka.service
Normal file
@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Haraka Email Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=haraka
|
||||
Group=ploi
|
||||
WorkingDirectory=/home/ploi/2weekmail.fyi/src/email_server
|
||||
ExecStart=/usr/bin/node /usr/lib/node_modules/Haraka/bin/haraka -c /home/ploi/2weekmail.fyi/src/email_server --debug --nodejs
|
||||
StandardOutput=append:/var/log/haraka/out.log
|
||||
StandardError=append:/var/log/haraka/error.log
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
ProtectSystem=full
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
x
Reference in New Issue
Block a user