on Fri, Jun 09, 2006 at 01:54:04PM -0500, James Medley wrote:
> Hi All,
> 
> I have installed and have running QPopper 4.0.9 on a Mac G5 desktop  
> (OS 10.4.6). My problem is getting popper to auto startup after a  
> power failure or reboot. I attempted to follow the direction given in  
> the 'doc' for macs;
> 
> >Now, using /System/Library/StartupItems/CrashReporter as an example,
> >create a /Library/StartupItems/QPopper that launches popper at startup
> >time (have it test the POPSERVER variable and then you can set
> >POPSERVER=-YES- in /etc/hostconfig to enable it).  Store the popper
> >executable in /Library/StartupItems/QPopper so that it stays with the
> >QPopper startup item.  Your StartupParameters.plist should have
> >Requires = ("Resolver", "Network") and Provides = ("POP3").  May sure
> >you launch popper in your QPopper script using the full path
> >"/Library/StartupItems/QPopper/popper" or it won't work.
> 
> but I am a little s thick sometimes. The directions say "have it test  
> the POPSERVER variable and then you can set POPSERVER=-YES- in /etc/ 
> hostconfig to enable it". How do I have it test the POPSERVER variable?

Use /System/Library/StartupItems/CrashReporter as an example ;)

StartService ()
{
    if [ "${CRASHREPORTER:=-YES-}" = "-YES-" ]; then
        /usr/libexec/crashreporterd;
    fi
}

So, for popper:

StartService ()
{
    if [ "${POPSERVER:=-YES-}" = "-YES-" ]; then
        /Library/StartupItems/QPopper/popper;  
    fi
}

I dunno why they think you need to stick popper into
/Library/StartupItems/QPopper, though - crashreporterd obvious doesn't.

HTH

-- 
hesketh.com/inc. v: +1(919)834-2552 f: +1(919)834-2554 w: http://hesketh.com/
antispam news, solutions for sendmail, exim, postfix: http://enemieslist.com/
rambling, amusements, edifications and suchlike: http://interrupt-driven.com/

Reply via email to