literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
29 lines
544 B
Bash
29 lines
544 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: perdition_imap4s
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable perdition.imap4s
|
|
#
|
|
# perdition_imap4s_enable="YES"
|
|
# perdition_imap4s_flags="<set as needed>"
|
|
#
|
|
# See perdition(8) for flags
|
|
#
|
|
|
|
perdition_imap4s_enable=${perdition_imap4s_enable-"NO"}
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="perdition_imap4s"
|
|
rcvar=perdition_imap4s_enable
|
|
|
|
command="%%PREFIX%%/sbin/perdition.imap4s"
|
|
pidfile="/var/run/perdition.imap4s/perdition.imap4s.pid"
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|