[hobbit] auto-restart clients
Gentlemen, Thank you for the responses. I should have mentioned that most of the machines are solaris and a few are AIX
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Saturday, April 23, 2005 11:52 AM To: hobbit at hswn.dk Subject: Re: [hobbit] auto-restart clients
On Sat, Apr 23, 2005 at 11:41:15AM -0400, kevin hanrahan wrote:
For reasons which I cannot understand, our unix admins feel the need to reboot their machines constantly. I don't think there is an uptime exceeding 2 weeks!! However when that happens, the BB client stops reporting and I eventually get the purple alerts from Hobbit. Can someone tell me how to get the clients to auto-restart? Also, I am not a coder so please don't tell me to "write a script to make them start at reboot" because that is obvious....i just don't know how. Thank you for all input on this.
Normally a script like this would suffice:
#!/bin/sh
case "$1" in "start") su -c "/usr/local/bb/bbc/runbb.sh start" bb ;;
"stop") su -c "/usr/local/bb/bbc/runbb.sh stop" bb ;; esac
exit 0
Now the trick is to get that script run automatically when the system starts up. How you do that depends on the Unix flavour - often the script is installed in /etc/init.d/bigbrother, and then you need to create links from /etc/rc2.d/S99bigbrother -> /etc/init.d/bigbrother
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Note: The information contained in this email and in any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. The recipient should check this email and any attachments for the presence of viruses. Sender accepts no liability for any damages caused by any virus transmitted by this email. If you have received this email in error, please notify us immediately by replying to the message and delete the email from your computer. This e-mail is and any response to it will be unencrypted and, therefore, potentially unsecure. Thank you. NOVA Information Systems, Inc.
participants (1)
-
Kevin.Hanrahan@novainfo.com