rc script improvements

It was not setting user to "nobody" correctly
This commit is contained in:
Mark Felder 2015-04-24 14:50:32 +00:00
parent 6b84bfce9d
commit e21e35c1b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=384651
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= anope PORTNAME= anope
PORTVERSION= 2.0.2 PORTVERSION= 2.0.2
PORTREVISION= 0 PORTREVISION= 1
CATEGORIES= irc CATEGORIES= irc
MAINTAINER= feld@FreeBSD.org MAINTAINER= feld@FreeBSD.org

View file

@ -19,10 +19,10 @@ rcvar=anope_enable
load_rc_config $name load_rc_config $name
command=%%PREFIX%%/anope/bin/services : ${anope_enable:=NO}
: ${anope_user:=nobody}
anope_enable=${anope_enable:-"NO"} command=%%PREFIX%%/anope/bin/services
anope_user:=nobody
pidfile=%%PREFIX%%/anope/data/services.pid pidfile=%%PREFIX%%/anope/data/services.pid
run_rc_command "$1" run_rc_command "$1"