X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fkfreebsd%2Ffiles%2Fprocps.init;fp=modules%2Fkfreebsd%2Ffiles%2Fprocps.init;h=0000000000000000000000000000000000000000;hb=a516268b2f85b0faa6d90832290c3bafd1f4bf45;hp=4b1e5aeee2ff15205b06f5253f2567b6bc7a9c09;hpb=33ef9d8cf9b3c33aa8b0abc678a2b94d4aaefb55;p=mirror%2Fdsa-puppet.git diff --git a/modules/kfreebsd/files/procps.init b/modules/kfreebsd/files/procps.init deleted file mode 100755 index 4b1e5aeee..000000000 --- a/modules/kfreebsd/files/procps.init +++ /dev/null @@ -1,61 +0,0 @@ -#! /bin/sh -# /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf - -# written by Stephen Gran based on work by Elrond - -### BEGIN INIT INFO -# Provides: procps -# Required-Start: mountkernfs $local_fs -# Required-Stop: -# X-Start-Before: networking -# Default-Start: S -# Default-Stop: -# Short-Description: Configure kernel parameters at boottime -# Description: Loads kernel parameters that are specified in /etc/sysctl.conf -### END INIT INFO - -PATH=/sbin:/bin - -SYSCTL=/bin/sysctl - -test -x $SYSCTL || exit 0 - -. /lib/lsb/init-functions - -# Comment this out for sysctl to print every item changed -QUIET_SYSCTL="-q" - -# Check for existance of the default file -if [ -f /etc/default/rcS ] ; then - . /etc/default/rcS -fi - -set -e - -VERBOSE=yes -case "$1" in - start|restart|force-reload) - log_action_begin_msg "Setting kernel variables " - STATUS=0 - for file in /etc/sysctl.conf /etc/sysctl.d/*.conf ; do - if [ -r "$file" ] ; then - if [ "$VERBOSE" = "yes" ] ; then - log_action_cont_msg " $file" - fi - egrep -v '^[[:space:]]*(#|$)' "$file" | while read line; do - $SYSCTL $QUIET_SYSCTL "$(echo $line | sed -e 's/ = /=/')" - done - fi - done - log_action_end_msg $STATUS - ;; - stop) - ;; - *) - echo "Usage: /etc/init.d/procps {start|stop|restart|force-reload}" >&2 - exit 3 - ;; -esac - -exit 0 -