public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] SYSLOG dependancy
@ 2001-09-16 18:39 Martin Schlemmer
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Schlemmer @ 2001-09-16 18:39 UTC (permalink / raw
  To: Gentoo-Dev

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




^ permalink raw reply	[flat|nested] 2+ messages in thread
* [gentoo-dev] SYSLOG dependancy
@ 2001-09-16 20:05 Donny Davies
  0 siblings, 0 replies; 2+ messages in thread
From: Donny Davies @ 2001-09-16 20:05 UTC (permalink / raw
  To: gentoo-dev

I second the nomination for a generic, syslogger dependency.

I'm thinking it would be a very nice idea for a virtual/syslog
category. This is nearly perfect for an global rc.conf setting
a la SYSLOG="metalog", SYSLOG="sysklogd", etc..

I gather we'd need some glue to allow initscripts to depend
on 'syslog', not sure what that glue would be, perhaps an
satisfy() { provide syslog }. Just a hunch...

I'm sure theres more issues, which I'm probably not even
aware of.  What are others thinking?

Regards
--
Donny





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-17  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-16 18:39 [gentoo-dev] SYSLOG dependancy Martin Schlemmer
  -- strict thread matches above, loose matches on Subject: below --
2001-09-16 20:05 Donny Davies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox