Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 06:17:23 GMT
From:      Alexander Mishin <mishin@mh.san.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/188449: sshguard_pidfile variable not defined
Message-ID:  <201404110617.s3B6HNhV037814@cgiserv.freebsd.org>
Resent-Message-ID: <201404110620.s3B6K0Ri010486@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         188449
>Category:       ports
>Synopsis:       sshguard_pidfile variable not defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 11 06:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Mishin
>Release:        RELEASE-10.0.0
>Organization:
>Environment:
FreeBSD p501720.domain.com 10.0-RELEASE FreeBSD 10.0-RELEASE #1 r264302: Thu Apr 10 16:00:59 MSK 2014     root@p501720.domain.com:/usr/obj/usr/src/sys/PIGEON  amd64
>Description:
There is no defined variable ${sshguard_pidfile} in service script "/usr/local/etc/rc.d/sshguard after" installed sshguard from ports. Only ${pidfile} is defined. But service script try to use it. 

[root@p501720 /usr/local/etc/rc.d]# grep pidfile -n sshguard 
40:# sshguard_pidfile (str):	Path to PID file.
77:pidfile=${sshguard_pidfile:-"/var/run/${name}.pid"}
84:command_args="-cf ${actual_command} -b ${sshguard_blacklist} ${sshguard_watch_params} -a ${sshguard_safety_thresh} -p ${sshguard_pardon_min_interval} -s ${sshguard_prescribe_interval} -w ${sshguard_whitelistfile} -i ${sshguard_pidfile}"

>How-To-Repeat:
Just install sshguard and check for no sshguard_* vars but sshguard_enable="YES"

#service sshguard start - shows running sshguard but realy do nothing.
>Fix:
Define variable sshguard_pidfile="/var/run/sshguard.pid" in /etc/rc.conf yourself.

Or correct your /usr/local/etc/rc.d/sshguard for:
command_args="-cf ${actual_command} -b ${sshguard_blacklist} ${sshguard_watch_params} -a ${sshguard_safety_thresh} -p ${sshguard_pardon_min_interval} -s ${sshguard_prescribe_interval} -w ${sshguard_whitelistfile} -i ${sshguard_pidfile}"
to:
command_args="-cf ${actual_command} -b ${sshguard_blacklist} ${sshguard_watch_params} -a ${sshguard_safety_thresh} -p ${sshguard_pardon_min_interval} -s ${sshguard_prescribe_interval} -w ${sshguard_whitelistfile} -i ${pidfile}"

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404110617.s3B6HNhV037814>