fix: update guacd service configuration in installation script (#1122)

This commit is contained in:
Emik 2024-12-31 16:42:13 +08:00 committed by GitHub
parent dc314990f8
commit 2479ceeb99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,21 @@ Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl -q enable --now tomcat guacd mysql
cat <<EOF >/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