diff options
author | Wesley Shields <wxs@FreeBSD.org> | 2010-04-11 11:43:26 +0000 |
---|---|---|
committer | Wesley Shields <wxs@FreeBSD.org> | 2010-04-11 11:43:26 +0000 |
commit | 2bdb8e8cc7d563de6d6792872ac4eedb71172415 (patch) | |
tree | 55c990c64ed4f4d9449a2013afc81be51ef51e8c /net | |
parent | 7052bc7d68fe9056e0372a6f918e4b1ef7cfa5af (diff) | |
download | ports-2bdb8e8cc7d563de6d6792872ac4eedb71172415.tar.gz ports-2bdb8e8cc7d563de6d6792872ac4eedb71172415.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/freeradius/files/radiusd.sh.in | 4 | ||||
-rw-r--r-- | net/freeradius2/files/radiusd.sh.in | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/freeradius/files/radiusd.sh.in b/net/freeradius/files/radiusd.sh.in index 795cea0104e2..86724eb68800 100644 --- a/net/freeradius/files/radiusd.sh.in +++ b/net/freeradius/files/radiusd.sh.in @@ -22,11 +22,13 @@ pidfile=/var/run/radiusd/radiusd.pid # The radiusd_config parameter is now obsolete. Instead, derive the # configuration directory name from radiusd_flags if possible, otherwise # default to %%PREFIX%%/etc/raddb -required_dirs=`echo ${radiusd_flags} | sed -Ee 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:'` +required_dirs=`echo ${radiusd_flags} | sed -Ene 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:p'` required_dirs=${required_dirs:-"%%PREFIX%%/etc/raddb"} required_files="${required_dirs}/radiusd.conf" radiusd_enable=${radiusd_enable-"NO"} +command_args="&" + run_rc_command "$1" diff --git a/net/freeradius2/files/radiusd.sh.in b/net/freeradius2/files/radiusd.sh.in index 6e623e392c0d..066993ebb965 100644 --- a/net/freeradius2/files/radiusd.sh.in +++ b/net/freeradius2/files/radiusd.sh.in @@ -30,13 +30,14 @@ debug_cmd="radiusd_debug" # The radiusd_config parameter is now obsolete. Instead, derive the # configuration directory name from radiusd_flags if possible, otherwise # default to %%PREFIX%%/etc/raddb -required_dirs=`echo ${radiusd_flags} | sed -Ee 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:'` +required_dirs=`echo ${radiusd_flags} | sed -Ene 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:p'` required_dirs=${required_dirs:-"%%PREFIX%%/etc/raddb"} required_files="${required_dirs}/radiusd.conf" radiusd_enable=${radiusd_enable-"NO"} +command_args="&" radiusd_debug() { |