mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update hyperhdr-install.sh
Create service file
This commit is contained in:
parent
d5d245cf47
commit
2699f25457
@ -28,6 +28,24 @@ $STD apt-get update
|
|||||||
$STD apt-get install -y hyperhdr
|
$STD apt-get install -y hyperhdr
|
||||||
msg_ok "Installed 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
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user