[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Initscript for Suse?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Initscript for Suse?
- From: Rich Smrcina <rsmrcina (at) wi.rr.com>
- Date: Mon, 25 Jan 2010 15:42:06 -0600
- References: <4B5CF4E6.3060307 (at) logicaltech.com.au> <20100125084907.165230 (at) gmx.net> <5B1841FCD13E944EAC1CAFA4AE3863DB163162E6D5 (at) pfo-ex002.aii.aiinformatics.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
Although not specifically for SLES 11, I've used a variation of this on
SLES 9, 10 and 11. It should live in /etc/rc.d and works with chkconfig.
#! /bin/sh
### BEGIN INIT INFO
# Provides: xymon
# Required-Start: network
# Required-Stop: network
# Default-Start: 3 5
# Default-Stop: 3
# Description: Start the Xymon network monitor
### END INIT INFO
case "$1" in
start)
echo "Starting Xymon"
su - xymon -c "cd /home/xymon/server; ./hobbit.sh start"
;;
stop)
echo "Stopping Xymon"
su - xymon -c "cd /home/xymon/server; ./hobbit.sh stop"
;;
restart)
$0 stop
$0 start
rc_status
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
On 01/25/2010 10:04 AM, Reinartz Ralf AII.Pforzheim wrote:
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server?
Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
applied international informatics GmbH
Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B
Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk
--
Rich Smrcina
Phone: 414-491-6001
http://www.linkedin.com/in/richsmrcina
Catch the WAVV! http://www.wavv.org
WAVV 2010 - Apr 9-13, 2010 Covington, KY