Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system logger [FAILED]

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi~

when ever i boot and/or try to restart the system logger it fails, any one have any idea where/what i can check in order to resolve this problem.. i'm not really in the mood to re-install Redhat again :}

thanks in advance!
 
Check [tt]/var/log/messages[/tt] for any error messages.
If there are none, try restarting it manually to see if it outputs any errors. //Daniel
 
completely empty.. how do i manually restart it ?

(my pessimistic side feels a re-install coming up & i really don't feel like that @ this point :)
 
Hi roeiboot..
Logging is one of the things on any *nix box
that needs to work.
Assuming that you are using the vanilla syslogd try
to start it with the -d flag and post anything you
don't understan here.
man syslogd for more options that may or may not be
useful to you.
 
well.. for one i still am unable to restart syslogd, it keeps coming back with a bunch of parameters i need to enter, so it reports.
 
The script below starts syslogd at bootup. Check /etc/rc.d/init.d and look for a file called "syslog". If it isn't there, copy and paste this file into that directory. Then make sure the run level you usually boot calls this file.


#!/bin/bash
#
# syslog Starts syslogd/klogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log # messages to various system log files. It is a good idea to always # run syslog.
### BEGIN INIT INFO
# Provides: $syslog
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -f /sbin/syslogd ] || exit 0
[ -f /sbin/klogd ] || exit 0

# Source config
if [ -f /etc/sysconfig/syslog ] ; then
. /etc/sysconfig/syslog
else
SYSLOGD_OPTIONS="-m 0"
KLOGD_OPTIONS="-2"
fi

RETVAL=0

umask 077

start() {
echo -n $"Starting system logger: "
daemon syslogd $SYSLOGD_OPTIONS
RETVAL=$?
echo
echo -n $"Starting kernel logger: "
daemon klogd $KLOGD_OPTIONS
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
return $RETVAL
}
stop() {
echo -n $"Shutting down kernel logger: "
killproc klogd
echo
echo -n $"Shutting down system logger: "
killproc syslogd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog
return $RETVAL
}
rhstatus() {
status syslogd
status klogd
}
restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
status)
rhstatus
;;
restart|reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/syslog ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
exit 1
esac

exit $?
 
syslogd will not start with the -d flag?
Could you post the exact error?
Can it not find it's conf file? Are you running
it in a chroot jail?
 
For cryin' out loud roeiboot, can't ya ever have fixable problems like normal people? :) I think what marsd is asking is, does syslogd tell you why it's not starting? If all it is giving you is parms, then it wants you to use one in the list e.g. /sbin/syslogd start. If this is not the problem, the only thing I can think of is the old pid or lock file got left behind when it was shutdown the last time. Run "top" from the command line and see if it is running. If not, look in /var/lock/subsys for a blank file called syslog. If it's there delete it. Then look in /var/run and if a file called syslogd.pid is there, delete that too. Once you do that, type the following:

/sbin/syslogd start

I hope this does it for ya buddy, or at least gives you some kind of error so we know where to start looking.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top