Commit ca8fba0c authored by Leigh B. Stoller's avatar Leigh B. Stoller

SFS change I forgot to commit; add stuff for linux subsystem lock file

sillyness.
parent 671aae57
#!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
exit 0
fi
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
case "$1" in
start)
if [ ! -e /etc/sfs ]; then
......@@ -15,6 +28,7 @@ start)
if [ -x /usr/local/sbin/sfssd ]; then
/usr/local/sbin/sfssd && echo -n ' sfssd'
fi
touch /var/lock/subsys/sfs
;;
stop)
if [ -f /var/run/sfssd.pid ]; then
......@@ -23,6 +37,7 @@ stop)
if [ -f /var/run/sfscd.pid ]; then
kill `cat /var/run/sfscd.pid`;
fi
rm -f /var/lock/subsys/sfs
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment