freebsd-ports/irc/ptlink-services/files/ptlink-services.sh.in
Marcus Alves Grando 0ae2d6109a Update to 3.4.2
Fix pid file location

PR:		86844
Submitted by:	Dennis Cabooter <dennis@rootxs.org> (maintainer)
Approved by:	pav (mentor)
2005-10-03 13:14:54 +00:00

25 lines
501 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: services
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# Add the following line(s) to /etc/rc.conf:
# services_enable (bool): Set to "NO" by default, set it to "YES" to enable services
# services_user (str): Default to "ircd"
services_enable=${services_enable-"NO"}
services_user=${services_user-"ircd"}
. %%RC_SUBR%%
name="services"
rcvar=`set_rcvar`
pidfile="/var/run/ircsvs.pid"
command="%%PREFIX%%/bin/ircsvs"
load_rc_config "$name"
run_rc_command "$1"