ports/183226: rc script updata
Real Huang
realhuang at kkbox.com
Wed Oct 23 08:40:01 UTC 2013
>Number: 183226
>Category: ports
>Synopsis: rc script updata
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 23 08:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Real Huang
>Release: FreeBSD 9.1-RELEASE-p7 amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:34:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
xymon mail alert , mail from is not "xymon"
>How-To-Repeat:
>Fix:
--- uu begins here ---
Index: xymon-server.in
===================================================================
--- xymon-server.in (revision 331352)
+++ xymon-server.in (working copy)
@@ -14,12 +14,12 @@
load_rc_config "$name"
: ${xymon_server_enable:="NO"}
-command="su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh'"
-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'"
+command="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh'"
+start_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh start'"
+stop_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh stop'"
+status_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh status'"
+reload_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh reload'"
+restart_cmd="env -i su -m %%XYMONUSER%% -c '%%PREFIX%%/www/xymon/server/xymon.sh restart'"
pidfile="/var/log/xymon/xymond.pid"
run_rc_command "$1"
--- uu ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list