freebsd-ports/security/sfs/files/sfssd.sh
Matthew N. Dodd 02f34c6f5f A secure global network file system. SFS names FSs by public keys
PR:		ports/40455
Submitted by:	Michael Handler <handler@grendel.net>
2002-07-12 02:52:31 +00:00

17 lines
280 B
Bash

#!/bin/sh
PIDFILE=/var/run/sfssd.pid
case "$1" in
start)
[ -x %%PREFIX%%/sbin/sfssd ] && %%PREFIX%%/sbin/sfssd && echo -n ' sfssd'
;;
stop)
[ -r $PIDFILE ] && kill -TERM `cat $PIDFILE` && echo -n ' sfssd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0