freebsd-ports/sysutils/lcdproc/files/lcdproc.in
Rong-En Fan 639e9b414e - Changed lcdproc client startup script to require config file, because
command line switch to daemonize is not supported as of version 0.5.1.

PR:		ports/105681
Submitted by:	Markus Dolze <bsdfan at nurfuerspam.de> (maintainer)
2006-11-21 07:24:32 +00:00

26 lines
417 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: lcdproc
# REQUIRE: LCDd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#
. %%RC_SUBR%%
name="lcdproc"
rcvar=${name}_enable
load_rc_config $name
: ${lcdproc_enable="NO"}
: ${lcdproc_conf="%%PREFIX%%/etc/lcdproc.conf"}
: ${lcdproc_flags="-c ${lcdproc_conf}"}
required_files=${lcdproc_conf}
command="%%PREFIX%%/bin/lcdproc"
run_rc_command "$1"