Help - Search - Members - Calendar
Full Version: urchin startup
The Planet Forums > Control Panels > Urchin
Syan
How do i setup urchin 5 to startup during boot?
python_dev
I got bored with it also so i wrote an init script icon_biggrin.gif

CODE
#!/bin/sh

#

# urchin This script starts and stops urchin

#

# chkconfig: 3 99 01

#

# proccessname: urchinwebd

#

# description: urchin config is a monitoring tool for network performance

# Source function library.

. /etc/rc.d/init.d/functions

# Source networking configuration.

. /etc/sysconfig/network

# Check that networking is up.

[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/local/urchin/bin/urchinctl -o -f /usr/local/urchin/bin/urchinwebd ] || exit 0

PATH=$PATH:/usr/bin:/usr/local/bin:/usr/local/urchin/bin

# See how we were called.

case "$1" in

start)

# Start daemon.

echo -n "Starting Urchin: "

urchinctl start

RETVAL=$?

echo
;;

stop)

# Stop daemons.

echo -n "Shutting down Urchin: "

urchinctl stop

#RETVAL=$?

echo
;;

restart)

$0 stop

$0 start
;;

status)

urchinctl status
;;

*)

echo "Usage: $0 {start|stop|restart|status}"

exit 1

esac

exit 0

just put it in a file eg urchin in /etc/init.d/ and then add
chkconfig --level 345 urchin on
chkconfig --list urchin
and it should start on boot for you icon_wink.gif
Have fun..
zacpac
or use the one that urchin provide with there product from memory its in /path/to/urchin/utils i think but its there somewhere
kwitko
I think the standard directory = /usr/local/urchin/util
To get the file in your /etc/init.d just run

[root@secure util]# cp urchin_daemons /etc/init.d/urchin

Make sure is CHMODed correctly.

Then install by running chkconfig --level 345 urchin on

and then start straight away with /etc/init.d/urchin start

Andrew
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.