mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Clean up / simplify rc script.
I have been meaning to solve the following error that used to happen every time you executed the rc script: /usr/local/etc/rc.d/xymon-server: WARNING: cannot read shebang line from su Sponsored by: SupraNet Communications, Inc
This commit is contained in:
parent
d67c21d573
commit
9643dc9327
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346220
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= xymon
|
||||
PORTVERSION= 4.3.17
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt www
|
||||
MASTER_SITES= SF/xymon/Xymon/${PORTVERSION}
|
||||
PKGNAMESUFFIX= -server${PKGNAMESUFFIX2}
|
||||
|
@ -14,15 +14,13 @@ rcvar=xymon_server_enable
|
||||
|
||||
load_rc_config "$name"
|
||||
: ${xymon_server_enable:=NO}
|
||||
: ${xymon_server_user:=%%XYMONUSER%%}
|
||||
|
||||
command="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh'"
|
||||
command="%%WWWDIR%%/server/xymon.sh"
|
||||
command_args="start"
|
||||
start_precmd=xymon_prestart
|
||||
start_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh start'"
|
||||
stop_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh stop'"
|
||||
status_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh status'"
|
||||
reload_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh reload'"
|
||||
restart_cmd="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh restart'"
|
||||
pidfile=/var/log/xymon/xymond.pid
|
||||
pidfile=/var/log/xymon/xymonlaunch.pid
|
||||
procname="%%WWWDIR%%/server/bin/xymonlaunch"
|
||||
|
||||
xymon_prestart()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user