From 9c475a02088e436112d4458218d508157011811a Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Sat, 22 Jun 2024 17:30:53 -0400
Subject: [PATCH] Update petio-install.sh

tweak service file
---
 install/petio-install.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/install/petio-install.sh b/install/petio-install.sh
index 05499bd5..0de03f15 100644
--- a/install/petio-install.sh
+++ b/install/petio-install.sh
@@ -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