diff options
author | ume <ume@FreeBSD.org> | 2003-08-31 10:27:18 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-31 10:27:18 +0000 |
commit | f493652ff5d9c8d1d3d7a67339c8920a10a5e688 (patch) | |
tree | 608d95830a75cb6cf310a707dd9ea4858b3d7ff0 /sysutils/gkrellm2/files | |
parent | bbec9441b64ee7250ba8c89cde4a1acf00f0656b (diff) | |
download | FreeBSD-ports-f493652ff5d9c8d1d3d7a67339c8920a10a5e688.zip FreeBSD-ports-f493652ff5d9c8d1d3d7a67339c8920a10a5e688.tar.gz |
Use USE_RC_SUBR.
Diffstat (limited to 'sysutils/gkrellm2/files')
-rw-r--r-- | sysutils/gkrellm2/files/gkrellmd.sh | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/sysutils/gkrellm2/files/gkrellmd.sh b/sysutils/gkrellm2/files/gkrellmd.sh index bde345a..b8b1d14 100644 --- a/sysutils/gkrellm2/files/gkrellmd.sh +++ b/sysutils/gkrellm2/files/gkrellmd.sh @@ -3,22 +3,34 @@ # Start or stop gkrellmd # $FreeBSD$ -PREFIX=%%PREFIX%% +# PROVIDE: gkrellmd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move imapd.sh to /etc/rc.d/gkrellmd -case "$1" in -start) - if [ -x ${PREFIX}/sbin/gkrellmd -a \ - -f ${PREFIX}/etc/gkrellmd.conf ]; then - ${PREFIX}/sbin/gkrellmd -d - echo -n ' gkrellmd' - fi - ;; -stop) - killall gkrellmd && echo -n ' gkrellmd' - ;; -*) - echo "Usage: `basename $0` {start|stop}" >&2 - ;; -esac +prefix=%%PREFIX%% -exit 0 +# Define these imapd_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/gkrellmd +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +gkrellmd_enable="NO" # Enable gkrellmd +#gkrellmd_program="${prefix}/cyrus/bin/master" # Location of gkrellmd +gkrellmd_flags="-d" # Flags to gkrellmd program + +. %%RC_SUBR%% + +name="gkrellmd" +rcvar=`set_rcvar` +command="${prefix}/sbin/${name}" +required_files="${prefix}/etc/${name}.conf" + +load_rc_config $name +run_rc_command "$1" |