public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Martin Schlemmer <azarah@saintmail.net>
To: Gentoo-Dev <gentoo-dev@gentoo.org>
Subject: [gentoo-dev] SYSLOG dependancy
Date: Sun Sep 16 18:39:02 2001	[thread overview]
Message-ID: <1000686271.25146.15.camel@nosferatu.lan> (raw)

hi

is there a dependancy named SYSLOG for the new initscripts ?

like:

depend() {
	need syslog
}

it could be useful for starting klogd before /etc/init.d/modules so that
our bootup will be a bit cleaner.

here is a example of what i mean (i added sysklogd to the boot
runlevel):

/etc/init.d/modules.diff:
-------------------cut here------------------------
*** modules.orig	Mon Sep 17 02:21:25 2001
--- modules	Sun Sep 16 18:20:46 2001
***************
*** 1,7 ****
  #!/sbin/runscript
  	
  depend() {
! 	need bootmisc localmount
  }
  
  start() {
--- 1,7 ----
  #!/sbin/runscript
  	
  depend() {
! 	need bootmisc localmount sysklogd
  }
  
  start() {
---------------------cut here------------------------

and /etc/init.d/sysklogd:
---------------------cut here------------------------
#!/sbin/runscript

klog="/usr/sbin/klogd"
slog="/usr/sbin/syslogd"

#only warnings and up gets logged to console
#so our bootup is much cleaner
KLOGD="$KLOGD -c 3 -2"
#SYSLOGD="$SYSLOGD -m 0"

depend() {
        need hostname
}
	
start() {
    ebegin "Starting syslogd, klogd"
    start-stop-daemon --start --exec $slog -- $SYSLOGD 1>&2
    retval=$?
    start-stop-daemon --start --exec $klog -- $KLOGD 1>&2
    retval=$(( $retval + $? ))
    eend $retval 
}

stop() {
    ebegin "Stopping klogd, syslogd"
    start-stop-daemon --stop --pidfile /var/run/klogd.pid 1>&2
    retval=$?
    start-stop-daemon --stop --pidfile /var/run/syslogd.pid 1>&2
    retval=$(( $retval + $? ))
    eend $retval 
}
--------------------cut here--------------------------

greetings
MS




             reply	other threads:[~2001-09-17  0:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-16 18:39 Martin Schlemmer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-16 20:05 [gentoo-dev] SYSLOG dependancy Donny Davies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1000686271.25146.15.camel@nosferatu.lan \
    --to=azarah@saintmail.net \
    --cc=gentoo-dev@cvs.gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox