Mailinglist Archive: opensuse-packaging (134 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Fwd: [systemd-devel] [RFC] Preset Files
- From: Rob OpenSuSE <rob.opensuse.linux@xxxxxxxxx>
- Date: Fri, 8 Jul 2011 20:16:19 +0100
- Message-id: <CAKeeO4eVNwdgY5iH_8-YqGK_ww+dr_pxzAoArtxpJx=9YyyVHw@mail.gmail.com>
On 8 July 2011 18:31, Christian Boltz <opensuse@xxxxxxxxx> wrote:
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
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.
Regards Rob
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
on Freitag, 8. Juli 2011, Robert Schweikert wrote:
OK, did not know that and was not part of the original message.
Well, using numbers works, still leaves one parsing all files for a
specific service and then figuring out which one is processed last
and wins. Allowing only one file or enable/disable pair of files
makes that task a lot easier.
There is another way that can even avoid reading file contents ;-)
I propose to use two subdirectories "enabled" and "disabled", and then
just put empty files there, with filename = service name.
In other words: "touch disabled/cupsd.service" would mean cupsd is
disabled by default, and "touch enabled/sshd.service" would enable sshd
by default.
The default behaviour (if there is no service-specific default set)
could also stored with this method - just "touch enabled/DEFAULT".
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.
Regards Rob
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |