client startup script for Solaris10 or Linux
list Camelia Anghel
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
list Josh Luthman
Works on all my Linux (Fedora, Centos, Debian) boxes. http://pastebin.com/m50937662 #!/bin/sh PATH=$PATH:/bin:/usr/bin # FOR su STARTDIR=/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
list Josh Luthman
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
list Brian Catlin
Check out: 0 http://xymonton.trantor.org/doku.php/addons:hobbitsmf This is a set of scripts there to implement the SMF methods for Solaris 10. Works fine on the servers I have tried. Makes for a consistent command set to start and stop the client when needed. user-259d6a9a548a@xymon.invalid
▸
-------Original Message-------
From: Camelia Anghel
Date: 09/14/09 16:24:27
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] client startup script for Solaris10 or Linux
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
list Camelia Anghel
Thank you all, Camelia
▸
-----Original Message----- From: Brian Catlin [mailto:user-af6e4c377507@xymon.invalid] Sent: Monday, September 14, 2009 9:45 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] client startup script for Solaris10 or Linux Check out: 0 http://xymonton.trantor.org/doku.php/addons:hobbitsmf This is a set of scripts there to implement the SMF methods for Solaris 10. Works fine on the servers I have tried. Makes for a consistent command set to start and stop the client when needed. user-259d6a9a548a@xymon.invalid -------Original Message------- From: Camelia Anghel <mailto:user-56034f999072@xymon.invalid> Date: 09/14/09 16:24:27 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] client startup script for Solaris10 or Linux 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
list Camelia Anghel
Josh, so where so I run this script from /etc/init.d??? Thanks, Camelia
▸
-----Original Message----- From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Monday, September 14, 2009 4:27 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] client startup script for Solaris10 or Linux Works on all my Linux (Fedora, Centos, Debian) boxes. http://pastebin.com/m50937662 #!/bin/sh PATH=$PATH:/bin:/usr/bin # FOR su STARTDIR=/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
list Camelia Anghel
Brian, Sorry to ask, I'm fairly new to this but where are the client.xml and server.xml files that I'm supposed to copy? Thanks
▸
Camelia -----Original Message----- From: Brian Catlin [mailto:user-af6e4c377507@xymon.invalid] Sent: Monday, September 14, 2009 9:45 PM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] client startup script for Solaris10 or Linux Check out: 0 http://xymonton.trantor.org/doku.php/addons:hobbitsmf This is a set of scripts there to implement the SMF methods for Solaris 10. Works fine on the servers I have tried. Makes for a consistent command set to start and stop the client when needed. user-259d6a9a548a@xymon.invalid -------Original Message------- From: Camelia Anghel <mailto:user-56034f999072@xymon.invalid> Date: 09/14/09 16:24:27 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] client startup script for Solaris10 or Linux 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