freebsd-ports/net/xbms/files/xbms.in
Marcus Alves Grando 73b5d69bdc - Fix MASTER_SITES. [1]
- Use USE_RC_SUBR and add rc.d script.
- Preserve .conf file
- Bump PORTREVISION
- portlint(1)

PR:		94248
Submitted by:	Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
Reported by:	fenner's distfile survey [1]
Approved by:	portmgr (marcus)
2006-03-12 21:51:52 +00:00

26 lines
439 B
Bash

#!/bin/sh
#
# PROVIDE: xbms
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# xbms_enable (bool): Set to NO by default.
# Set it to YES to enable xbms.
#
. %%RC_SUBR%%
name="xbms"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/$[name}.conf
load_rc_config $name
: ${xbms_enable="NO"}
run_rc_command "$1"