Update petio-install.sh

tweak service file
This commit is contained in:
tteckster 2024-06-22 17:30:53 -04:00 committed by GitHub
parent 72d70d7842
commit 9c475a0208
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,15 +51,18 @@ msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/petio.service
[Unit]
Description=Petio a content request system
After=network.target
StartLimitIntervalSec=0
After=network.target mongod.service
[Service]
Type=simple
User=petio
Restart=on-failure
RestartSec=1
ExecStart=/opt/Petio/bin/petio-linux
User=petio
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now petio.service