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:
- Add link from /etc/init.d top openfire binary
sudo ln -s /opt/openfire/bin/openfire /etc/init.d/openfire
- 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…
MJMC
3
I know it’s an old thread, but thanks for posting this.
Jason60
4
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