[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] client startup script for Solaris10 or Linux
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] client startup script for Solaris10 or Linux
- From: "Camelia Anghel" <canghel (at) cjh.org>
- Date: Tue, 15 Sep 2009 08:24:02 -0400
- Thread-index: Aco1eg17l8vkscyrTOyGZykPWqWzggAhSWMA
- Thread-topic: [hobbit] client startup script for Solaris10 or Linux
Josh, so where so I run this script from /etc/init.d???
Thanks,
Camelia
-----Original Message-----
From: Josh Luthman [mailto:josh (at) imaginenetworksllc.com]
Sent: Monday, September 14, 2009 4:27 PM
To: hobbit (at) hswn.dk
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: 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