From: Toby P. <tob...@gm...> - 2019-02-14 22:33:15
|
Kevin - Here you go: ------------------------------------------------------------------------------------------------------ #!/sbin/openrc-run # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { after iptables use logger } SSHGUARD_PIDFILE=${SSHGUARD_PIDFILE:-/var/run/${SVCNAME}.pid} start() { ebegin "Starting sshguard" [ -z "${SSHGUARD_WAIT}" ] && SSHGUARD_WAIT=999 start-stop-daemon --start --wait ${SSHGUARD_WAIT} --background --quiet --exec \ /usr/sbin/sshguard -- -i ${SSHGUARD_PIDFILE} ${SSHGUARD_OPTS} eend $? } stop() { ebegin "Stopping sshguard" start-stop-daemon --stop -p ${SSHGUARD_PIDFILE} eend $? } ------------------------------------------------------------------------------------------------------ ------ Original Message ------ From: "Kevin Zheng" <kev...@gm...> To: "Toby Poynder" <to...@wh...> Cc: ssh...@li... Sent: 14/02/2019 19:20:30 Subject: Re: [SSHGuard-users] openrc incorrect status >Hi Toby, > >Glad to hear. Do you know where we can find the init.d scripts for Gentoo so that we might be able to debug the issue? > >I suspect it has something to do with where we write the PID file. > >Regards, >Kevin > >On 2/14/19 2:49 AM, Toby Poynder wrote: >>I'm running Safeguard on two Gentoo linux servers (both openrc) and both show the status as "crashed" even when the system is running finel >> >>[elvis] /etc/init.d# rc-service sshguard status >>* status: crashed >> >>Apart from this I ave no complaints - much easier to set up and use than fail2ban. >>-- Toby Poynder >>London, UK >> >> >>_______________________________________________ >>sshguard-users mailing list >>ssh...@li... >>https://lists.sourceforge.net/lists/listinfo/sshguard-users >> > > >-- Kevin Zheng >kev...@gm... | ke...@be... | PGP: 0xC22E1090 --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |