Commit 606f064c authored by wojiushixiaobai's avatar wojiushixiaobai

[Fix]修改自启脚本

parent ffaf29c3
...@@ -178,7 +178,6 @@ Systemd 管理启动 Jumpserver ...@@ -178,7 +178,6 @@ Systemd 管理启动 Jumpserver
# Guacamole # Guacamole
$ chkconfig guacd on $ chkconfig guacd on
$ sed -i '143i CATALINA_PID="/config/tomcat8/tomcat.pid"' /config/tomcat8/bin/catalina.sh
$ vi /usr/lib/systemd/system/guacamole.service $ vi /usr/lib/systemd/system/guacamole.service
[Unit] [Unit]
Description=guacamole Description=guacamole
...@@ -187,12 +186,12 @@ Systemd 管理启动 Jumpserver ...@@ -187,12 +186,12 @@ Systemd 管理启动 Jumpserver
[Service] [Service]
Type=forking Type=forking
PIDFile=/config/tomcat8/tomcat.pid # PIDFile=/config/tomcat8/tomcat.pid
# BOOTSTRAP_TOKEN 根据实际情况修改 # BOOTSTRAP_TOKEN 根据实际情况修改
Environment="JUMPSERVER_SERVER=http://127.0.0.1:8080" "JUMPSERVER_KEY_DIR=/config/guacamole/keys" "GUACAMOLE_HOME=/config/guacamole" "BOOTSTRAP_TOKEN=******" Environment="JUMPSERVER_SERVER=http://127.0.0.1:8080" "JUMPSERVER_KEY_DIR=/config/guacamole/keys" "GUACAMOLE_HOME=/config/guacamole" "BOOTSTRAP_TOKEN=******"
ExecStart=/config/tomcat8/bin/startup.sh ExecStart=/config/tomcat8/bin/startup.sh
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=
ExecStop=/bin/kill -s QUIT $MAINPID ExecStop=/config/tomcat8/bin/shutdown.sh
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment