From: jungle b. <jun...@gm...> - 2017-01-10 06:08:32
|
On 01/09/2017 07:57 PM, Kevin Zheng wrote: > On 01/09/17 21:39, jungle boogie wrote: >> I'm not a packages maintainer but I tested this out on an OpenBSD >> machine I have. >> >> Aside from the known start up issues[0], I was able to install and use >> sshguard without any issues. > > Glad to hear. > > I could only gather this from the mailing list: > > "It crashes when /etc/rc exits (with a blacklist db file), > so it needs to be started after /etc/rc has finished." > > Any idea what's happening? It'd be nice to work it out before the next > release :) > I don't know the cause, sadly. It seems users generally come up with their own solution and don't worry about it beyond that. Here's it checking to see if sshguard is running, which eventually fails. $ doas /etc/rc.d/sshguard check + daemon=/usr/local/sbin/sshguard + . /etc/rc.d/rc.subr + _rc_actions=start stop restart reload check + readonly _rc_actions + [ -n ] + basename /etc/rc.d/sshguard + _name=sshguard + _rc_check_name sshguard + [ -n /usr/local/sbin/sshguard ] + unset _RC_DEBUG _RC_FORCE + getopts df c + shift 0 + _RC_RUNDIR=/var/run/rc.d + _RC_RUNFILE=/var/run/rc.d/sshguard + _rc_do _rc_parse_conf + eval _rcflags=${sshguard_flags} + _rcflags= + eval _rcrtable=${sshguard_rtable} + _rcrtable= + eval _rcuser=${sshguard_user} + _rcuser= + eval _rctimeout=${sshguard_timeout} + _rctimeout= + getcap -f /etc/login.conf sshguard + > /dev/null + 2>&1 + daemon_class=daemon + [ -z ] + daemon_rtable=0 + [ -z ] + daemon_user=root + [ -z ] + daemon_timeout=30 + [ -n -o check != start ] + [ X = XNO ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + readonly daemon_class + unset _rcflags _rcrtable _rcuser _rctimeout + pexp=/usr/local/sbin/sshguard + rcexec=su -l -c daemon -s /bin/sh root -c + [ 0 -eq 0 ] + rc_bg=YES + rc_reload=NO + rc_cmd check sshguard(failed) > Thanks, > Kevin > |