mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Update to 8.1.16. Changes include:
- added 'replstring' substitution option - inspired by conversation with Owen DeLong <owen@c2company.com> - added '^Ecn' option for writing a note to the logfile - patch by Bryan Schmersal <bschmer@yahoo.com> - fixed leaking file descriptors when 'host' and 'uds' consoles fail to connect - based on patch by Michael Heironimus <michael_heironimus@archwayconcepts.com> Also, the rc.d script now supports "reload", "reconnect", and "reinit" keywords (they are to send HUP/USR1/USR2 respectively). Approved by: kuriyama (maintainer)
This commit is contained in:
parent
c5488974ad
commit
a8994cf080
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198405
3 changed files with 39 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= conserver
|
||||
PORTVERSION= 8.1.15
|
||||
PORTVERSION= 8.1.16
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://www.conserver.com/ \
|
||||
ftp://ftp.conserver.com/conserver/
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (conserver-8.1.15.tar.gz) = fba8bf42d32cf2119cd0f49b2043681c
|
||||
SHA256 (conserver-8.1.15.tar.gz) = 66b632664177c8a95161ece76617208c92688973fd0c3db554ccac08522bc409
|
||||
SIZE (conserver-8.1.15.tar.gz) = 310032
|
||||
MD5 (conserver-8.1.16.tar.gz) = 2364ba56f5201b07646bdfaefedd330b
|
||||
SHA256 (conserver-8.1.16.tar.gz) = 43dc9d81bc23d76a0ec01acd1f54f5c276b715feeb8f52bb33b5c81f325a46d8
|
||||
SIZE (conserver-8.1.16.tar.gz) = 311373
|
||||
|
|
|
@ -13,11 +13,44 @@ name="conserver"
|
|||
rcvar=`set_rcvar`
|
||||
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
pidfile=/var/run/conserver.pid
|
||||
required_files=%%PREFIX%%/etc/conserver.cf
|
||||
pidfile=/var/run/${name}.pid
|
||||
required_files=%%PREFIX%%/etc/${name}.cf
|
||||
extra_commands="reload reconnect reinit"
|
||||
reconnect_cmd="reconnect_cmd"
|
||||
reinit_cmd="reinit_cmd"
|
||||
|
||||
load_rc_config $name
|
||||
: ${conserver_enable="NO"}
|
||||
: ${conserver_flags="-d"}
|
||||
|
||||
kill_cmd()
|
||||
{
|
||||
_msg=$1
|
||||
_sig=$2
|
||||
|
||||
if [ -z "$rc_pid" ]; then
|
||||
if [ -n "$pidfile" ]; then
|
||||
echo 1>&2 \
|
||||
"${name} not running? (check $pidfile)."
|
||||
else
|
||||
echo 1>&2 "${name} not running?"
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
echo "$_msg"
|
||||
kill -${_sig:-HUP} $rc_pid
|
||||
_return=$?
|
||||
[ $_return -ne 0 ] && [ -z "$rc_force" ] && return 1
|
||||
}
|
||||
|
||||
reconnect_cmd()
|
||||
{
|
||||
kill_cmd "Try to reconnect all downed consoles." USR1
|
||||
}
|
||||
|
||||
reinit_cmd()
|
||||
{
|
||||
kill_cmd "Try to close and reopen all log files and downed connections." USR2
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Add table
Reference in a new issue