10484
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
During startup of my 7.4-RELEASE-p3 I get these messages:
Code:
/etc/rc.d/sysctl: WARNING: sysctl current does not exist. /etc/rc.d/sysctl: WARNING: sysctl ====== does not exist. /etc/rc.d/sysctl: WARNING: sysctl 7.4-Release does not exist. Code:
# cat /etc/rc.d/sysctl
#!/bin/sh
#
# $FreeBSD: src/etc/rc.d/sysctl,v 1.17.2.2.8.1 2010/12/21 17:10:29 kensmith Exp $
#
# PROVIDE: sysctl
# REQUIRE: root
# BEFORE: DAEMON
. /etc/rc.subr
name="sysctl"
stop_cmd=":"
start_cmd="sysctl_start"
reload_cmd="sysctl_start"
lastload_cmd="sysctl_start last"
extra_commands="reload lastload"
#
# Read in a file containing sysctl settings and set things accordingly.
#
parse_file()
{
if [ -f $1 ]; then
while read var comments
do
case ${var} in
\#*|'')
;;
*)
mib=${var%=*}
val=${var#*=}
if current_value=`${SYSCTL} -n ${mib} 2>/dev/null`; then
case ${current_value} in
${val})
;;
*)
sysctl "${var}"
;;
esac
elif [ "$2" = "last" ]; then
warn "sysctl ${mib} does not exist."
fi
;;
esac
done < $1
fi
}
sysctl_start()
{
parse_file /etc/sysctl.conf $1
parse_file /etc/sysctl.conf.local $1
}
load_rc_config $name
run_rc_command "$1"
Last edited by DutchDaemon; March 8th, 2012 at 00:29. |
|
#2
|
||||
|
||||
|
Check the contents of /etc/sysctl.conf.
|
|
#3
|
|||
|
|||
|
BTW I don't know what's wrong:
Code:
# cat /etc/sysctl.conf current version compat.linux.osrelease=2.6.16 ======= # $FreeBSD: src/etc/sysctl.conf,v 1.8.38.1 2010/12/21 17:10:29 kensmith Exp $ # # This file is read when going to multi-user and its contents piped thru # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details. # # Uncomment this to prevent users from seeing information about processes that # are being run under another UID. #security.bsd.see_other_uids=0 7.4-RELEASE |
|
#4
|
||||
|
||||
|
You skipped this file during mergemaster(8). Just remove the entire content except the remarks.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
ccc (March 8th, 2012) | ||
|
#5
|
|||
|
|||
|
Thanks a lot it works well now.
Last edited by DutchDaemon; March 8th, 2012 at 00:29. |
|
#6
|
||||
|
||||
|
Like the error messages said, "current version" and "7.4-RELEASE" are not valid sysctls, and should not be in there.
|
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
ccc (March 8th, 2012) | ||
|
#7
|
|||
|
|||
|
Quote:
Code:
compat.linux.osrelease=2.6.16 Last edited by DutchDaemon; March 8th, 2012 at 02:36. |
|
#8
|
||||
|
||||
|
That's the default version already, at least on 9-stable. Comment it out and check the default value after rebooting:
% sysctl compat.linux.osreleaseIf it's already that value, it would be better not to have that entry. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] can reload sysctl.conf? | meeinter | General | 4 | February 28th, 2012 01:49 |
| how to know how many of a sysctl is used? | fluca1978 | General | 2 | February 2nd, 2012 16:53 |
| Usage sysctl | Andrew | General | 10 | September 21st, 2009 18:43 |
| [Solved] kenv and sysctl | st3ph4n | General | 0 | April 8th, 2009 10:17 |
| sysctl.conf | lumiwa | General | 5 | January 11th, 2009 03:31 |