[prev in list] [next in list] [prev in thread] [next in thread] 

List:       psad-discuss
Subject:    Re: [psad-discuss] PSAD init script for Gentoo
From:       Michael Rash <mbr () cipherdyne ! org>
Date:       2008-08-27 0:14:21
Message-ID: 20080827001421.GB32234 () cipherdyne ! org
[Download RAW message or body]

On Aug 25, 2008, Steve wrote:

> 
> -------- Original-Nachricht --------
> > Datum: Mon, 25 Aug 2008 19:58:24 +0200
> > Von: Franck Joncourt <franck.mail@dthconnex.com>
> > An: psad-discuss@lists.sourceforge.net
> > Betreff: Re: [psad-discuss] PSAD init script for Gentoo
> 
> > Steve wrote:
> > > Hello List
> > 
> > Hi,
> > 
> Hello
> 
> 
> > > When using Gentoo and openrc I get the following error when trying to
> > start PSAD:
> > > * Starting psad ...
> > > * start-stop-daemon: /usr/sbin/psad is a script
> > > * start-stop-daemon: and should be started, stopped or signalled with
> > > * start-stop-daemon: --exec /usr/bin/perl -w /usr/sbin/psad
> > > * start-stop-daemon: or you should specify a pidfile or process name
> > > * Failed to start psad                                                 
> > [ !! ]
> > > * ERROR: psad failed to start
> > > 
> > > 
> > > In order to work around this issue the init.d script for Gentoo should
> > be changed. The start() part should be:
> > > start() {
> > > checkconfig || return 1
> > > 
> > > ebegin "Starting ${SVCNAME}"
> > > start-stop-daemon --start --quiet --exec /usr/bin/perl -- -w
> > /usr/sbin/psad
> > > eend $? "Failed to start ${SVCNAME}"
> > > }
> > 
> > On Debian we specify the pidfile through the --pidfile option.
> > 
> You could do that. This is not the problem. The problem is that this stupid openrc \
> is forcing you to start scripts like PSAD (which is written in Perl) differently. \
> That's the issue. But if you insist, then the following change would work as well: \
> start() { checkconfig || return 1
> 
> ebegin "Starting ${SVCNAME}"
> start-stop-daemon \
> --start \
> --quiet \
> --name psad \
> --exec /usr/sbin/psad \
> --pidfile /var/run/psad/psad.pid
> eend $? "Failed to start ${SVCNAME}"
> }

Hi Steve -

I've applied this patch, but I don't currently have a Gentoo system to
test it out.  Here is a link to psad-2.1.5-pre1 that hopefully fixes the
problem (and I've credited you with the fix).

http://www.cipherdyne.org/psad/download/psad-2.1.5-pre1.tar.gz

If you have a spare moment to test it out, please let me know if there
are any issues.

Thanks,

--Mike


> > Regards,
> > 
> // SteveB
> 
> 
> > -- 
> > Franck Joncourt
> > http://debian.org - http://smhteam.info/wiki/
> > Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE
> > 
> 
> -- 
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> psad-discuss mailing list
> psad-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/psad-discuss

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
psad-discuss mailing list
psad-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/psad-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic