freebsd-ports/mail/popular/files/0ringd.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

37 lines
653 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ringd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
# /etc/rc.conf lines:
# ringd_enable="YES" # enable ringd
# ringd_socket_user="pop" # user to own /var/run sockets
. /etc/rc.subr
name="ringd"
rcvar=ringd_enable
load_rc_config $name
: ${ringd_enable="NO"}
: ${ringd_socket_user="pop"}
command="%%PREFIX%%/sbin/ringd"
command_args="--user ${ringd_socket_user}"
start_precmd="${name}_prestart"
ringd_prestart()
{
mkdir -p /var/log/popular
chown ${ringd_socket_user} /var/log/popular
mkdir -p /var/run/popular
chown ${ringd_socket_user} /var/run/popular
}
run_rc_command "$1"