diff options
author | leeym <leeym@FreeBSD.org> | 2006-05-20 07:38:08 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2006-05-20 07:38:08 +0800 |
commit | 3c32fca93ed6569a359a4545066765509614908b (patch) | |
tree | 239c5a4fdfeb96d2a67f64ef8e3cd7eddff52d5f /sysutils/diskcheckd/files | |
parent | 3d5ef75e7173c1509dea8a83e9235dfce396d76a (diff) | |
download | freebsd-ports-gnome-3c32fca93ed6569a359a4545066765509614908b.tar.gz freebsd-ports-gnome-3c32fca93ed6569a359a4545066765509614908b.tar.zst freebsd-ports-gnome-3c32fca93ed6569a359a4545066765509614908b.zip |
- add USE_RC_SUBR
- refine IGNORE
- bump PORTREVISION
Diffstat (limited to 'sysutils/diskcheckd/files')
-rw-r--r-- | sysutils/diskcheckd/files/diskcheckd.in | 27 | ||||
-rw-r--r-- | sysutils/diskcheckd/files/diskcheckd.sh | 20 |
2 files changed, 27 insertions, 20 deletions
diff --git a/sysutils/diskcheckd/files/diskcheckd.in b/sysutils/diskcheckd/files/diskcheckd.in new file mode 100644 index 000000000000..2140d618c7cd --- /dev/null +++ b/sysutils/diskcheckd/files/diskcheckd.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: diskcheckd +# REQUIRE: DAEMON +# KEYWORD: shutdown +# + +# Define these diskcheckd_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/diskcheckd +# +# DO NOT CHANGE THE DEFAULT VALUES HERE + +diskcheckd_enable=${diskcheckd_enable:-"no"} + +. /etc/rc.subr + +name="diskcheckd" +rcvar=`set_rcvar` +command=%%PREFIX%%/sbin/diskcheckd + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/diskcheckd/files/diskcheckd.sh b/sysutils/diskcheckd/files/diskcheckd.sh deleted file mode 100644 index 7459f8215c22..000000000000 --- a/sysutils/diskcheckd/files/diskcheckd.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/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 |