1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/security/sfs/files/sfscd.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

18 lines
280 B
Bash

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