mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-30 12:34:43 +00:00
fix guacd service
This commit is contained in:
+3
-6
@@ -77,18 +77,15 @@ bind_port = 4822
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f /etc/systemd/system/guacd.service ]]; then
|
if [[ ! -f /etc/systemd/system/guacd.service ]] || grep -q "Type=forking" /etc/systemd/system/guacd.service 2>/dev/null; then
|
||||||
cat <<EOF >/etc/systemd/system/guacd.service
|
cat <<EOF >/etc/systemd/system/guacd.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Guacamole Proxy Daemon (guacd)
|
Description=Guacamole Proxy Daemon (guacd)
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
ExecStart=/etc/init.d/guacd start
|
ExecStart=/usr/local/sbin/guacd -f -b 127.0.0.1 -l 4822
|
||||||
ExecStop=/etc/init.d/guacd stop
|
|
||||||
ExecReload=/etc/init.d/guacd restart
|
|
||||||
PIDFile=/var/run/guacd.pid
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
@@ -119,11 +119,8 @@ Description=Guacamole Proxy Daemon (guacd)
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=simple
|
||||||
ExecStart=/etc/init.d/guacd start
|
ExecStart=/usr/local/sbin/guacd -f -b 127.0.0.1 -l 4822
|
||||||
ExecStop=/etc/init.d/guacd stop
|
|
||||||
ExecReload=/etc/init.d/guacd restart
|
|
||||||
PIDFile=/var/run/guacd.pid
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user