diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
commit | 83eb2c37009874672764765ec3bf3b59286c7391 (patch) | |
tree | a956ace1a4a1e10876d4c36f12af02bc9df6cb29 /www/aolserver | |
parent | 3c1484f2613137d7eaba8577f6d580c5532ac912 (diff) | |
download | ports-83eb2c37009874672764765ec3bf3b59286c7391.tar.gz ports-83eb2c37009874672764765ec3bf3b59286c7391.zip |
In the rc.d scripts, change assignments to rcvar to use the
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.
Notes
Notes:
svn path=/head/; revision=289156
Diffstat (limited to 'www/aolserver')
-rw-r--r-- | www/aolserver/files/aolserver.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/aolserver/files/aolserver.in b/www/aolserver/files/aolserver.in index 467e100aec6e..408b33629b27 100644 --- a/www/aolserver/files/aolserver.in +++ b/www/aolserver/files/aolserver.in @@ -1,8 +1,10 @@ #! /bin/sh -# + +# $FreeBSD$ # # PROVIDE: aolserver # REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable aolserver: # @@ -13,8 +15,10 @@ . /etc/rc.subr name=aolserver +rcvar=aolserver_enable load_rc_config ${name} + : ${aolserver_enable="NO"} : ${aolserver_user="%%AOLSERVERUSER%%"} : ${aolserver_group="%%AOLSERVERGROUP%%"} @@ -24,7 +28,6 @@ load_rc_config ${name} : ${aolserver_prog=${aolserver_home}/bin/nsd} : ${aolserver_pidfile=/var/run/aolserver.pid} -rcvar=`set_rcvar` pidfile=${aolserver_pidfile} start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" |