in reply to Getting a Regex Not to Match Again

It looks like your issue is pattern anchors as far as your program goes, but if I'm not mistaken, you're totally going about this all wrong.

Scripts in /etc/rc0-6.d/ can simply be removed. They are either symlinks or hard links to scripts in /etc/init.d/

The S scripts start a service, the K scripts shut down a service.

If your default runlevel is 2, and you don't want sendmail running as a daemon, just delete S88sendmail (or whatever number it is).

Replies are listed 'Best First'.
Re: Re: Getting a Regex Not to Match Again
by bcole23 (Scribe) on Oct 10, 2002 at 21:05 UTC
    Or the better option is to just relink it starting with "s" instead of "S" just for historical purposes. That way, someone else looking at your machine will know that sendmail was there. Only "S" or "K" will be run.