On 8 July 2011 20:16, Rob OpenSuSE <rob.opensuse.linux@gmail.com> wrote:
On 8 July 2011 18:31, Christian Boltz <opensuse@cboltz.de> wrote:
on Freitag, 8. Juli 2011, Robert Schweikert wrote:
Advantages of this method: - you know exactly which files you have to check for a service - just check for disabled/$service_name and enabled/$service_name.
That seems much neater! I prefer that suggestion to all the others so far. If it's a flag, then let's treat it like one, no parsing, no syntax errors etc
The only thing my proposal doesn't solve is if enabled or disabled should win if both exist
Outlaw it! Simply mv {en,dis}abled/foo.service and mv {dis,en}abled/foo.service, and rm a redundant option that agrees with the system default.
Actually even simpler would be to say "everyone has a package manager", so we don't need to worry about configurable distro policy. The default is simply service disabled. The package management, is responsible to enable service with flag on a distro with that policy on install. As a courtesly to sysadmin, package management documents an installed but disabled service. If there's flags for both enabled & disabled, then disabled wins, rm the enabled flag by Lennarts laziness principal "if that's broken then evenutally someone will notice and come along to fix it for us". That allows global enabledment by the unwise, with mv "disabled/*.service enabled". The wise can, temporarily disable by "mv enabled off-maintenance", then re-enable later by "mv off-maintenace enabled" again. It's easy to undo the actions of the unwise, by "mv enabled/*.service disabled" and then re-enable the wanted services/ "echo *abled/*.service" documents what's on & off. Regards Rob -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org