Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] daemon spell uids should be < 100

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] daemon spell uids should be < 100
  • Date: Sat, 5 Jun 2004 10:53:49 +0200

On Fri, Jun 04, 2004 at 03:40:25PM -0700, Seth Alan Woolley wrote:
> I was just looking at the simpleinit man page and its shutdown process
> kills off all the uid => 100 processes before starting shutdown (in late
> stages it will kill all processes off as well). Since the daemons
> provide their own shutdown procedure, I propose it makes sense to assign
> uids < 100 to our init.d-using spells so that they can be properly shut
> down.
>
> Is there an easy way to do that? Am I off-base?
>
> I filed a bug and post it here since it covers more than one section.
>
> http://bugs.sourcemage.org/show_bug.cgi?id=6952
>
> Seth

I noticed that here, proftpd always gets killed before its own shutdown
script can run.
Editing /etc/sorcery/accounts will work for the accounts that get newly
created, but it won't help for those that already exist. Changing all
those accounts to have a uid < 100 isn't an option then, as most people
will already have several of them. Patching simpleinit do kill processes
with uid > 1000 is probably a better idea, since that's by convention
where the normal users uids start.

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page