rc-update show -v
acct |
acpid | boot
alsasound | boot
auditd |
bluetooth |
bootmisc | boot
consolefont | boot
consolekit | boot
cpufrequtils | default
crypto-loop |
cupsd | default
dbus | default
devfs | sysinit
device-mapper |
dmesg | sysinit
dmeventd |
fancontrol |
firehol |
fsck | boot
fuse | default
git-daemon |
gpm |
hdparm |
hostapd |
hostname | boot
hwclock | boot
iptables |
kexec |
keymaps | boot
killprocs | shutdown
lm_sensors |
local | default
localmount | boot
lvm |
lvm-monitoring |
mdev |
modules | boot
mount-ro | shutdown
mtab | boot
mysql |
mysqlmanager |
net.lo | boot
netmount | default
network |
nscd |
ntp-client |
ntpd |
numlock |
pciparm |
preload | boot
procfs | boot
pwcheck |
pydoc-2.7 |
pydoc-3.1 |
root | boot
rsyncd |
saslauthd |
savecache | shutdown
sshd |
staticroute |
svnserve |
swap | boot
swclock |
sysctl | boot
sysfs | boot
syslog-ng | boot
termencoding | boot
transmission-daemon |
udev | sysinit
udev-dev-tarball |
udev-mount |
udev-postmount | default
urandom | boot
vixie-cron | default
xdm | default
xdm-setup |
xl2tpd |
cat /etc/init.d/sysctl
#!/sbin/runscript
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
depend()
{
before bootmisc logger
keyword -prefix -vserver
}
start()
{
local conf= retval=0 err errs
ebegin "Configuring kernel parameters"
eindent
for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
if [ -r "$conf" ]; then
vebegin "applying $conf"
if ! err=$(sysctl -q -p "$conf" 2>&1) ; then
errs="${errs} ${err}"
sysctl -q -e -p "${conf}"
fi
veend $? || retval=1
fi
done
eoutdent
if [ ${retval} -eq 0 ] && [ -n "${errs}" ] ; then
ewarn "Unknown keys:${errs}"
fi
eend $retval "Some errors were encountered: ${errs}"
}
При запуске скрипта вручную параметры применяются, думаю что то обнуляет переменные после него. Как решить данную проблему?(Пока попробую перенести на sysinit или default)