Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,142
Community Members
 
Community Events
165
Community Groups

Confluence 7.13.5 is after Reboot not autostarting

Hello,

 

Confluence 7.13.5 is after Reboot not autostarting

 

Greets

Ralf

 

2 answers

0 votes

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

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
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

412 views 2 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you