sysklogd: add the rc.d scripts and run them by default.

--HG--
extra : convert_revision : 07e704a3e8c999d04305205ad359793d50a29d0c
This commit is contained in:
Juan RP 2009-03-06 05:40:33 +01:00
parent 134d5f6ce1
commit 5329e3579b
4 changed files with 39 additions and 1 deletions

View File

@ -25,3 +25,9 @@ CONSOLEMAP=
USELVM="no"
HOSTNAME="xbps"
#
# Services and daemons.
#
syslogd=yes
klogd=yes

14
templates/sysklogd/files/klogd Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# PROVIDE: klogd
# REQUIRE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="klogd"
rcvar=$name
command="/sbin/klogd"
command_args="-c4"
load_rc_config $name
run_rc_command "$1"

View File

@ -0,0 +1,14 @@
#!/bin/sh
#
# PROVIDE: syslogd
# REQUIRE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="syslogd"
rcvar=$name
command="/sbin/syslogd"
command_args="-m0"
load_rc_config $name
run_rc_command "$1"

View File

@ -27,9 +27,10 @@ Add_dependency full glibc
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
local filesdir=$XBPS_TEMPLATESDIR/$pkgname/files
# Create a default syslog.conf.
mkdir -p $destdir/etc
install -d ${destdir}/etc/rc.d
( \
echo "auth,authpriv.* -/var/log/auth.log"; \
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
@ -39,4 +40,7 @@ post_install()
echo "user.* -/var/log/user.log"; \
echo "*.emerg *"; \
) > $destdir/etc/syslog.conf
# Install the rc.d scripts.
install -m755 ${filesdir}/* ${destdir}/etc/rc.d
}