mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
83eb2c3700
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.
31 lines
485 B
Bash
31 lines
485 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: mydns
|
|
# REQUIRE: DAEMON mysql postgresql
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable mydns:
|
|
# mydns_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable MyDNS.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="mydns"
|
|
rcvar=mydns_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${mydns_enable="NO"}
|
|
|
|
command="%%PREFIX%%/sbin/mydns"
|
|
command_args="-b"
|
|
pidfile="/var/run/mydns.pid"
|
|
required_files="%%PREFIX%%/etc/mydns.conf"
|
|
|
|
run_rc_command "$1"
|