From 2699f254575b7b91e3627a087412c91d750ace01 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 17 Jan 2024 14:17:07 -0500 Subject: [PATCH] Update hyperhdr-install.sh Create service file --- install/hyperhdr-install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/install/hyperhdr-install.sh b/install/hyperhdr-install.sh index 4ced651b..bca1ce2c 100644 --- a/install/hyperhdr-install.sh +++ b/install/hyperhdr-install.sh @@ -28,6 +28,24 @@ $STD apt-get update $STD apt-get install -y hyperhdr msg_ok "Installed HyperHDR" +msg_info "Creating Service" +cat </etc/systemd/system/hyperhdr.service +[Unit] +Description=HyperHDR Service +After=syslog.target network.target + +[Service] +Restart=on-failure +RestartSec=5 +Type=simple +ExecStart=/usr/bin/hyperhdr + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now hyperhdr +msg_ok "Created Service" + motd_ssh customize