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
Works on all my Linux (Fedora, Centos, Debian) boxes.
#!/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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"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 <canghel at cjh.org> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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_Gui...
Script: http://iam8up.com/xymon-initd/hobbit
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"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 <josh at imaginenetworksllc.com>wrote:
Works on all my Linux (Fedora, Centos, Debian) boxes.
#!/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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
"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 <canghel at cjh.org> 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
lurch at inorbit.com -------Original Message-------
From: Camelia Anghel Date: 09/14/09 16:24:27 To: hobbit at hswn.dk 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (3)
-
bcatlin@gmail.com
-
canghel@cjh.org
-
josh@imaginenetworksllc.com