🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27101

Re: Use of startup_innd.pl filter

#27101
From: Jeremy
Date: Sun, 22 Mar 1998 00:00
28 lines
1596 bytes
Russ Allbery  <rra@stanford.edu> wrote:

>> The only place I've read about it is in my inbox. :)  But I'm told
>> it's there, and that it gets run, if present, at shutdown.
> 
> Cool.  The only additional piece, then, that we need is something to run
> at startup rather than just at mode changes and filter reloads.

Well, startup_innd.pl is loaded and evaulated at startup.  I don't
like it though, because if you want to change anything it becomes a
bit of a pain.

If you want something to run only at startup, you can do something like:

if (not $already_running) {
    ...stuff...
    $already_running = 1;
}

The first time it gets executed, $already_running won't be defined, but
after that, it will.

-- 
Jeremy  |  jeremy@exit109.com
"Everything you think you know is wrong."  --Jack Chalker

Technical Details
Message-ID: <26%Q.6$TR5.1570@firestorm.gunslinger.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <m367l85nm5.fsf@windlord.Stanford.EDU> <m3ogyz1p7f.fsf@windlord.Stanford.EDU> <hh_Q.5$TR5.1570@firestorm.gunslinger.net> <m3n2ejzcwd.fsf@windlord.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <26%Q.6$TR5.1570@firestorm.gunslinger.net>
Subject: Re: Use of startup_innd.pl filter
Date: Sun, 22 Mar 1998 00:00:00 +0000
From: Jeremy <jeremy@exit109.com>
References: <m367l85nm5.fsf@windlord.Stanford.EDU> <m3ogyz1p7f.fsf@windlord.Stanford.EDU> <hh_Q.5$TR5.1570@firestorm.gunslinger.net> <m3n2ejzcwd.fsf@windlord.Stanford.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 336428800
Organization: Still working on it...
NNTP-Posting-Date: Sat, 21 Mar 1998 21:57:02 EST
Newsgroups: news.software.nntp
Originator: jeremy@exit109.com (Jeremy)