mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Incremental improvements to the rc.d script per
http://lists.freebsd.org/pipermail/cvs-all/2011-July/341217.html Approved by: maintainer timeout (2 months)
This commit is contained in:
parent
8189ce3ba6
commit
369c12167b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282354
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= opendnssec
|
||||
PORTVERSION= 1.3.2
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://www.opendnssec.org/files/source/
|
||||
|
||||
|
@ -1,16 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: opendnssec
|
||||
# REQUIRE: DAEMON
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable nsd:
|
||||
# Add the following line to /etc/rc.conf to enable opendnssec:
|
||||
#
|
||||
# opendnssec_enable="YES"
|
||||
#
|
||||
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
@ -19,24 +17,17 @@ rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
opendnssec_enable=${opendnssec_enable-"NO"}
|
||||
opendnssec_enable=${opendnssec_enable:-"NO"}
|
||||
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
start_cmd="${name}_run $1"
|
||||
stop_cmd="${name}_run $1"
|
||||
extra_commands="reload ksm hsm signer enforcer"
|
||||
|
||||
procname=${opendnssec_procname}
|
||||
|
||||
|
||||
opendnssec_start()
|
||||
opendnssec_run()
|
||||
{
|
||||
%%PREFIX%%/sbin/ods-control start
|
||||
}
|
||||
|
||||
opendnssec_stop()
|
||||
{
|
||||
%%PREFIX%%/sbin/ods-control stop
|
||||
%%PREFIX%%/sbin/ods-control $1
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user