Update petio-install.sh
tweak service file
This commit is contained in:
parent
72d70d7842
commit
9c475a0208
1 changed files with 6 additions and 3 deletions
|
@ -51,15 +51,18 @@ msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/petio.service
|
cat <<EOF >/etc/systemd/system/petio.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Petio a content request system
|
Description=Petio a content request system
|
||||||
After=network.target
|
After=network.target mongod.service
|
||||||
StartLimitIntervalSec=0
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
User=petio
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
ExecStart=/opt/Petio/bin/petio-linux
|
ExecStart=/opt/Petio/bin/petio-linux
|
||||||
User=petio
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now petio.service
|
systemctl enable -q --now petio.service
|
||||||
|
|
Loading…
Reference in a new issue