Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence 7.13.5 is after Reboot not autostarting

Ralf Thmas
Contributor
March 28, 2022

Hello,

 

Confluence 7.13.5 is after Reboot not autostarting

 

Greets

Ralf

 

2 answers

0 votes
Fabio Racobaldo _Herzum_
Community Champion
March 28, 2022

Hi @Ralf Thmas ,

my suggestion is to create a service as follow :

  1. sudo touch /lib/systemd/system/confluence.service
  2. sudo chmod 664 /lib/systemd/system/confluence.service
  3. sudo vim /lib/systemd/system/confluence.service


    [Unit]
    Description=Confluence
    After=network.target

    [Service]
    Type=forking
    User=YOUR_USER (linux user that has access to folders)
    PIDFile=YOUR_CONFLUENCE_INST_FOLDER/work/catalina.pid
    ExecStart=YOUR_CONFLUENCE_INST_FOLDER//bin/start-confluence.sh
    ExecStop=YOUR_CONFLUENCE_INST_FOLDER//bin/stop-confluence.sh

    [Install]
    WantedBy=multi-user.target
  4. sudo systemctl daemon-reload
  5. sudo systemctl enable confluence.service

 

After doing that you can start|stop your service using :

sudo systemctl start|stop confluence

If you reboot your server, that service will automatically restart.

Please let me know if it works.

Fabio

0 votes
Fabio Racobaldo _Herzum_
Community Champion
March 28, 2022
Ralf Thmas
Contributor
March 28, 2022

the write i should generate file etc/init.d/confluence

 

but i already have and there inside

 

GNU nano 4.8 confluence #!/bin/bash

### BEGIN INIT INFO
# Provides: confluence
# Required-Start: $remote_fs $syslog $time $named
# Required-Stop: $remote_fs $syslog $time $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Atlassian Confluence
# Description: Atlassian Confluence Server
### END INIT INFO

# Confluence Linux service controller script
cd "/opt/atlassian/confluence/bin"

case "$1" in
start)
./start-confluence.sh
;;
stop)
./stop-confluence.sh
;;
restart)
./stop-confluence.sh
./start-confluence.sh
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events