sysklogd: add the rc.d scripts and run them by default.
--HG-- extra : convert_revision : 07e704a3e8c999d04305205ad359793d50a29d0c
This commit is contained in:
parent
134d5f6ce1
commit
5329e3579b
|
@ -25,3 +25,9 @@ CONSOLEMAP=
|
|||
|
||||
USELVM="no"
|
||||
HOSTNAME="xbps"
|
||||
|
||||
#
|
||||
# Services and daemons.
|
||||
#
|
||||
syslogd=yes
|
||||
klogd=yes
|
||||
|
|
|
@ -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"
|
|
@ -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"
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue