From 2479ceeb99e41632e56ac7df0f27feb95bc48fac Mon Sep 17 00:00:00 2001 From: Emik Date: Tue, 31 Dec 2024 16:42:13 +0800 Subject: [PATCH] fix: update guacd service configuration in installation script (#1122) --- install/apache-guacamole-install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install/apache-guacamole-install.sh b/install/apache-guacamole-install.sh index 71393235..1a465ddf 100644 --- a/install/apache-guacamole-install.sh +++ b/install/apache-guacamole-install.sh @@ -126,7 +126,21 @@ Restart=always [Install] WantedBy=multi-user.target EOF -systemctl -q enable --now tomcat guacd mysql +cat </etc/systemd/system/guacd.service +[Unit] +Description=Guacamole Proxy Daemon (guacd) +After=mysql.service tomcat.service +Requires=mysql.service tomcat.service +[Service] +Type=forking +ExecStart=/etc/init.d/guacd start +ExecStop=/etc/init.d/guacd stop +ExecReload=/etc/init.d/guacd restart +PIDFile=/var/run/guacd.pid +[Install] +WantedBy=multi-user.target +EOF +systemctl -q enable --now mysql tomcat guacd msg_ok "Setup Service" motd_ssh