OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

D.14. /etc/rc.d/init.d/sysctl‌


#!/bin/sh

########################################################################

# Begin sysctl

#

# Description : File uses /etc/sysctl.conf to set kernel runtime

#!/bin/sh

########################################################################

# Begin sysctl

#

# Description : File uses /etc/sysctl.conf to set kernel runtime


#

#

# Authors

#

#

# Update

#

# Version

#

#

#

# Authors

#

#

# Update

#

# Version

#


########################################################################

########################################################################


### BEGIN INIT INFO

# Provides:

# Required-Start:

# Should-Start:

# Required-Stop:

# Should-Stop:

# Default-Start:

# Default-Stop:

# Short-Description:

# Description:

#

# X-LFS-Provided-By:

### END INIT INFO

### BEGIN INIT INFO

# Provides:

# Required-Start:

# Should-Start:

# Required-Stop:

# Should-Stop:

# Default-Start:

# Default-Stop:

# Short-Description:

# Description:

#

# X-LFS-Provided-By:

### END INIT INFO


. /lib/lsb/init-functions


case "${1}" in start)

if [ -f "/etc/sysctl.conf" ]; then

log_info_msg "Setting kernel runtime parameters..." sysctl -q -p

evaluate_retval

fi

;;


status)

. /lib/lsb/init-functions


case "${1}" in start)

if [ -f "/etc/sysctl.conf" ]; then

log_info_msg "Setting kernel runtime parameters..." sysctl -q -p

evaluate_retval

fi

;;


status)



sysctl -a

;;


*)

echo "Usage: ${0} {start|status}" exit 1

;;

esac exit 0

# End sysctl

sysctl -a

;;


*)

echo "Usage: ${0} {start|status}" exit 1

;;

esac exit 0

# End sysctl


image

image

: Gerard Beekmans - gerard@linuxfromscratch.org DJ Lucas - dj@linuxfromscratch.org

: Bruce Dubbs - bdubbs@linuxfromscratch.org

: Gerard Beekmans - gerard@linuxfromscratch.org DJ Lucas - dj@linuxfromscratch.org

: Bruce Dubbs - bdubbs@linuxfromscratch.org

: LFS 7.0

: LFS 7.0

$syslog

localnet

$syslog

localnet

$local_fs sendsignals


3 4 5

0 1 2 6

Starts kernel and system log daemons. Starts kernel and system log daemons.

/etc/fstab.

LFS

$local_fs sendsignals


3 4 5

0 1 2 6

Starts kernel and system log daemons. Starts kernel and system log daemons.

/etc/fstab.

LFS

Top OS Cloud Computing at OnWorks: