Viitor_procps/etc/init.d/sysctl
kueller 66fd586af8 V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_procps@4306 504e572c-2e33-0410-9681-be2bf7408885
2008-05-03 16:59:08 +00:00

27 lines
402 B
Bash
Executable File

#!/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