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"
|
USELVM="no"
|
||||||
HOSTNAME="xbps"
|
HOSTNAME="xbps"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Services and daemons.
|
||||||
|
#
|
||||||
|
syslogd=yes
|
||||||
|
klogd=yes
|
||||||
|
|||||||
14
templates/sysklogd/files/klogd
Executable file
14
templates/sysklogd/files/klogd
Executable 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"
|
||||||
14
templates/sysklogd/files/syslogd
Executable file
14
templates/sysklogd/files/syslogd
Executable 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"
|
||||||
@ -27,9 +27,10 @@ Add_dependency full glibc
|
|||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||||
|
local filesdir=$XBPS_TEMPLATESDIR/$pkgname/files
|
||||||
|
|
||||||
# Create a default syslog.conf.
|
# 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.* -/var/log/auth.log"; \
|
||||||
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
|
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
|
||||||
@ -39,4 +40,7 @@ post_install()
|
|||||||
echo "user.* -/var/log/user.log"; \
|
echo "user.* -/var/log/user.log"; \
|
||||||
echo "*.emerg *"; \
|
echo "*.emerg *"; \
|
||||||
) > $destdir/etc/syslog.conf
|
) > $destdir/etc/syslog.conf
|
||||||
|
|
||||||
|
# Install the rc.d scripts.
|
||||||
|
install -m755 ${filesdir}/* ${destdir}/etc/rc.d
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user