Viitor_procps/etc/init.d/sysctl

27 lines
402 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
source /etc/init.d/functions
case "$1" in
start)
if [ ! -f /etc/sysconfig/sysctl.conf ];then
touch /etc/sysconfig/sysctl.conf
fi
echo -n "setting up sysctl"
loadproc /sbin/sysctl -q -e -p /etc/sysconfig/sysctl.conf
;;
stop)
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0: {start|stop|restart}"
exit 1
;;
esac