Xymon Mailing List Archive search

client startup script for Solaris10 or Linux

list Josh Luthman
Mon, 14 Sep 2009 16:37:44 -0400
Message-Id: <user-cead41f2db5b@xymon.invalid>

It's at the bottom of this.  Just now noticed that the startup script for my
instructions requires a root password from my server.  Obviously not very
helpful to anyone =(  Fixed now, though.

http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Administration_Guide/Compiling_on_CentOS

Script: http://iam8up.com/xymon-initd/hobbit

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Sep 14, 2009 at 4:26 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Works on all my Linux (Fedora, Centos, Debian) boxes.

http://pastebin.com/m50937662

#!/bin/sh
PATH=$PATH:/bin:/usr/bin                # FOR suSTARTDIR=/home/hobbituser/client
USERNAME=myhobbituser
STARTBIN=runclient.sh

case "$1" in
start)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN start"
        #&SLEEP
        ;;
restart)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN restart"
        #&SLEEP
        ;;
stop)
        su - $USERNAME -c "cd $STARTDIR;./$STARTBIN stop"
        ;;
*)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle


On Mon, Sep 14, 2009 at 1:26 PM, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:
Hello everyone,
Does anyone has a startup script for Solaris 10 or Linux?
I noticed that my clients become purple after a server restart...
Thanks,
Camelia