The integration of automatic launch and stop of Sysload for Unix can be done in any existing procedure.
Notes :
. Collector must be launched when all system daemons are running (nfs, communication, ...).
. Collector stop must be launched before all system daemons stop.
. The stop of the collector may take several seconds or one minute according to its frequency and an eventual update of the history file.
. A system stop without an effective stop of the collector can corrupt the history file.
Here are some examples according to the OS, for the collector (sldrmd) and the file-server (sldfsd) :
--- Solaris, HP-UX, Irix & Linux ----
-> Create a S999Sysload file in the directory
/etc/rc3.d (Solaris, Irix)
/sbin/rc3.d (HP-UX)
/etc/rc5.d (Linux)
with:
#!/bin/sh
#
# Sysload Startup
#
echo "Starting Sysload Daemons ..."
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/sbin
export PATH
SYSLOAD_DIR/coll/conf/sldrmd start
SYSLOAD_DIR/coll/conf/sldfsd start
exit 0
-> Create a K001Sysload file in the directory
/etc/rc0.d (Solaris, Irix, Linux)
/sbin/rc0.d (HP-UX)
with :
#!/bin/sh
#
# Sysload Shutdown
#
echo "Stopping Sysload Daemons ..."
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/sbin
export PATH
SYSLOAD_DIR/coll/conf/sldrmd stop
SYSLOAD_DIR/coll/conf/sldfsd stop
exit 0
--- Aix ---
Add the following lines in the file /etc/inittab :
sldr:2:once:SYSLOAD_DIR/coll/conf/sldrmd start
sldf:2:once:SYSLOAD_DIR/coll/conf/sldfsd start
[Solved] Unix & Linux: How to start and stop the Sysload agent automatically?
Started by men, Oct 07 2009 03:22 PM
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













