Update hyperhdr-install.sh

Create service file
This commit is contained in:
tteckster 2024-01-17 14:17:07 -05:00 committed by GitHub
parent d5d245cf47
commit 2699f25457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

View File

@ -28,6 +28,24 @@ $STD apt-get update
$STD apt-get install -y hyperhdr
msg_ok "Installed HyperHDR"
msg_info "Creating Service"
cat <<EOF >/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