confluence自启动

Published on with 0 views and 0 comments
[root@system-wiki ~]# cat /usr/lib/systemd/system/wiki.service 
[Unit]
Description=Wiki

[Service]
Type=simple
PIDFile=/usr/local/atlassian/confluence/work/catalina.pid
ExecStartPre=rm -rf /usr/local/atlassian/confluence/work/catalina.pid
ExecStart=/usr/local/atlassian/confluence/bin/startup.sh
ExecStop=/usr/local/atlassian/confluence/bin/shutdown.sh
PrivateTmp=true
Restart=always
User=confluence
Group=confluence
[Install]
WantedBy=multi-user.target

pid 设置文件:/usr/local/atlassian/confluence/bin/setenv.sh


标题:confluence自启动
作者:cuijianzhe
地址:https://cuijianzhe.github.io/articles/2022/01/21/1642779793133.html