summaryrefslogtreecommitdiffstats
path: root/sysutils/diskcheckd/files
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-08-24 14:33:12 +0000
committerdwcjr <dwcjr@FreeBSD.org>2001-08-24 14:33:12 +0000
commit4641decd037fe7d5209555a7cdcefdb75580d1fd (patch)
tree6636fede90149c8e3b5fab812402b34cdb7065de /sysutils/diskcheckd/files
parentad19e132210e2d9590698dab8ab8cf069441fb45 (diff)
downloadFreeBSD-ports-4641decd037fe7d5209555a7cdcefdb75580d1fd.zip
FreeBSD-ports-4641decd037fe7d5209555a7cdcefdb75580d1fd.tar.gz
Add initial diskcheckd skeleton while waiting for repo copy.
Diffstat (limited to 'sysutils/diskcheckd/files')
-rw-r--r--sysutils/diskcheckd/files/diskcheckd.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/diskcheckd/files/diskcheckd.sh b/sysutils/diskcheckd/files/diskcheckd.sh
new file mode 100644
index 0000000..7459f82
--- /dev/null
+++ b/sysutils/diskcheckd/files/diskcheckd.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+ start)
+ [ -x ${PREFIX}/sbin/diskcheckd ] && ${PREFIX}/sbin/diskcheckd
+ ;;
+ stop)
+ /usr/bin/killall diskcheckd
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ ;;
+esac
OpenPOWER on IntegriCloud