LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-12-2003, 01:49 PM   #1
kudos
Member
 
Registered: Oct 2002
Location: UK
Distribution: Fedora 4
Posts: 90

Rep: Reputation: 15
syslog starting with r argument?


Hi

how do i run syslog with the r argument.

here is the script that starts up syslog what do i have 2 change?

#!/bin/sh
#
# syslog Starts syslogd/klogd.
#
#
# chkconfig: 2345 30 99
# 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.

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

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

RETVAL=0

# See how we were called.
case "$1" in
start)
echo -n "Starting system logger: "
# we don't want the MARK ticks
daemon syslogd -m 0
RETVAL=$?
echo
echo -n "Starting kernel logger: "
daemon klogd
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
;;
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
;;
status)
status syslogd
status klogd
RETVAL=$?
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
*)
echo "Usage: syslog {start|stop|status|restart}"
exit 1
esac

exit $RETVAL



Many thanks
Kudos
 
Old 10-12-2003, 01:57 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think you need to change the line in the start section:
daemon syslogd -m 0

To:
daemon syslogd -r -m 0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
argument to sighandler new user Programming 1 11-17-2005 07:29 AM
setenv:too many argument petero Programming 1 06-02-2005 04:23 AM
I need help in an argument! cleorobrepixbox General 11 09-23-2004 08:29 PM
starting separate syslog for chroot environment plan9 Linux - Security 3 08-09-2004 05:57 PM
Possible Idea for Argument??? TheTrueVortek General 17 11-25-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration