freebsd-ports/sysutils/gkrellm2/files/gkrellmd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

30 lines
654 B
Bash

#!/bin/sh
# Start or stop gkrellmd
# $FreeBSD$
# PROVIDE: gkrellmd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these gkrellmd_* 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=${gkrellmd_enable:-"NO"} # Enable gkrellmd
#gkrellmd_program="%%PREFIX%%/sbin/gkrellmd" # Location of gkrellmd
gkrellmd_flags=${gkrellmd_flags:-"-d"} # Flags to gkrellmd
. /etc/rc.subr
name="gkrellmd"
rcvar=gkrellmd_enable
command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/${name}.conf"
load_rc_config $name
run_rc_command "$1"