[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some ideas about the Debian Runlevel System



Craig Dickson <crdic@pacbell.net> writes:
> I have an admittedly uninformed question about this.
>
> If I install a package like, say, samba, it will set itself up to run in
> runlevels 2-5. If I decide that I want runlevel 2 to be "no network",
> then what is the recommended Debian way to enforce this? If I just
> remove the symlink /etc/rc2.d/S20samba, will it reappear the next time I
> upgrade samba? Will it reappear if I remove samba and then reinstall
> it?

If you delete /etc/rc2.d/S20samba, it will reappear on an upgrade, if
(a) you've also deleted all of the other /etc/rc?.d/???samba links, or
(b) you purge (not just uninstall) samba (where b implies a,
actually).  If you delete a single link (or all but one of the links),
this gets preserved as a user modification.

> I'm hoping that either there is another mechanism for defining runlevels
> than just deleting symlinks, or that deleted symlinks won't reappear on
> upgrades. They probably should reappear after a removal/reinstall of the
> package, I suppose.

Deleted symlinks don't reappear on upgrade; they do after a
purge/reinstall.

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: