Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / etc / init.d / | server ip : 104.21.89.46 your ip : 108.162.241.220 H O M E |
Filename | /etc/init.d/procps |
Size | 1.16 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 27-May-2013 19:35 |
Last accessed | 05-Jul-2025 19:04 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#! /bin/sh
# /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf
#
# written by Elrond <[email protected]>
### BEGIN INIT INFO
# Provides: procps
# Required-Start: mountkernfs $local_fs
# Required-Stop:
# Should-Start: udev module-init-tools
# X-Start-Before: $network
# 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=/sbin/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 and exit if not there,
# Closes #52839 for the boot-floppy people
if [ -f /etc/default/rcS ] ; then
. /etc/default/rcS
fi
set -e
case "$1" in
start|restart|force-reload|reload)
log_action_begin_msg "Setting kernel variables "
STATUS=0
$SYSCTL $QUIET_SYSCTL --system || STATUS=$?
log_action_end_msg $STATUS
;;
stop)
;;
status)
;;
*)
echo "Usage: /etc/init.d/procps {start|stop|restart|reload|force-reload|status}" >&2
exit 3
;;
esac
exit 0
# /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf
#
# written by Elrond <[email protected]>
### BEGIN INIT INFO
# Provides: procps
# Required-Start: mountkernfs $local_fs
# Required-Stop:
# Should-Start: udev module-init-tools
# X-Start-Before: $network
# 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=/sbin/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 and exit if not there,
# Closes #52839 for the boot-floppy people
if [ -f /etc/default/rcS ] ; then
. /etc/default/rcS
fi
set -e
case "$1" in
start|restart|force-reload|reload)
log_action_begin_msg "Setting kernel variables "
STATUS=0
$SYSCTL $QUIET_SYSCTL --system || STATUS=$?
log_action_end_msg $STATUS
;;
stop)
;;
status)
;;
*)
echo "Usage: /etc/init.d/procps {start|stop|restart|reload|force-reload|status}" >&2
exit 3
;;
esac
exit 0