Automatic Start on Boot
list Joseph de Nicolo
Xymon users, Xymon Version: 4.3.10 OS Version: Ubuntu Server 12.04.1 LTS Can anybody advise me on how to make xymon server(xymon.sh) start automatically on server reboot? I also need to do the same for clients(runclient.sh). Thanks, * * *Joseph De Nicolo* *Secure Database Administrator • *Center for Complex Network Research <http://www.barabasilab.com>* *Northeastern University*
list Bill Arlofski
▸
On 01/15/13 12:15, Joseph De Nicolo wrote:
Xymon users, Xymon Version: 4.3.10 OS Version: Ubuntu Server 12.04.1 LTS Can anybody advise me on how to make xymon server(xymon.sh) start automatically on server reboot? I also need to do the same for clients(runclient.sh).
Hi Joseph,
On Gentoo systems, I normally just put the following line into
/etc/local.d/local.start
For server:
su - xymon -c "~/server/xymon.sh start"
For client:
su - xymon -c "~/client/runclient.sh start"
In Ubuntu the file to put that line into is: /etc/rc.local
Hope this helps.
--
Bill Arlofski
Reverse Polarity, LLC
list Mike Burger
Assuming a nongraphical boot: ln -s /path/to/xymon.sh /etc/rc3.d/S98xymon ln -s /path/to/xymon.sh /etc/rc6.d/K98xymon If you're booting with a GUI, substitute rc5.d for rc3.d. -- Mike Burger http://www.bubbanfriends.org "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
▸
Xymon users, Xymon Version: 4.3.10 OS Version: Ubuntu Server 12.04.1 LTS Can anybody advise me on how to make xymon server(xymon.sh) start automatically on server reboot? I also need to do the same for clients(runclient.sh). Thanks, * * *Joseph De Nicolo* *Secure Database Administrator • *Center for Complex Network Research <http://www.barabasilab.com>* *Northeastern University*
list Jeremy Laidman
▸
On 16 January 2013 07:59, Mike Burger <user-cc5c6e80f4c5@xymon.invalid> wrote:
Assuming a nongraphical boot: ln -s /path/to/xymon.sh /etc/rc3.d/S98xymon ln -s /path/to/xymon.sh /etc/rc6.d/K98xymon If you're booting with a GUI, substitute rc5.d for rc3.d.
Actually, you should do it for both runlevels 3 and 5, in case the default runlevel needs to change in the future. Also, as I understand it, a "K" symlink should not be required for runlevel 6, and instead should be in the runlevel being exited (ie 3 or 5). Ubuntu is Debian-based, so the Debian init scripts provided in the Xymon source should be suitable (xymon.init and xymon-client.init in the debian directory). On the server: cp xymon-4.3.10/debian/xymon.init /etc/init.d chkconfig --add xymon On the client: cp xymon-4.3.10/debian/xymon-client.init /etc/init.d chkconfig --add xymon All of this should be taken care of if you install using a .deb package, which is available from the Sourceforge site: http://sourceforge.net/projects/xymon/files/Xymon/4.3.10/Ubuntu1204/ Cheers Jeremy