Autostart Openfire - Ubuntu Server 11

BILLY MAYS HERE…

Can anyone provide directions on autostarting Openfire on boot with Ubuntu 11?

I installed from the tarball, so my OF directory is at /opt/openfire/bin .

I have done quite a bit of searching, but can’t quite figure out how to start OF similar to how you would start a service in Windows.

Any help would be greatly appreciated.

Cheers

Ok, after consulting with some Linux nuts around here and this page I think I got it figured out:

  1. Add link from /etc/init.d top openfire binary

sudo ln -s /opt/openfire/bin/openfire /etc/init.d/openfire

  1. Not sure what this does, but I suspect it registers the link I just made with system to fire up on start?

update-rc.d openfire defaults

Restarted and SUCCESS!

note: It figures I would figure it out AFTER posting this…

I know it’s an old thread, but thanks for posting this.

For completeness (And for the Red Hat side of the world)…

Good for RHEL, CentOS, Fedora

still do your linking:

sudo ln -s /opt/openfire/bin/openfire /etc/init.d/openfire

sudo chkconfig openfire --add

sudo chkconfig openfire on --level 235

sudo service openfire start

EDIT: run levels (–level xxxxx)

0 Halt

1 Single-User mode

2 Multi-user mode console logins only (without networking)

3 Multi-User mode, console logins only

4 Not used/User-definable

5 Multi-User mode, with display manager as well as console logins (X11)

6 Reboot