New profiles spec
Alex Smith
alex at alex-smith.me.uk
Sun Jun 3 20:06:09 BST 2007
Giuseppe Ciotta wrote:
> On 6/1/07, Alex Smith <alex at alex-smith.me.uk> wrote:
>
>> > /etc/init/profiles.d/no-x:
>> > enable *
>> > disable gdm
>> > disable kdm
>> > disable xdm
>> > disable ldm
>
> Hi,
> I think packages should be able to deal with profiles at installation
> time, Specifying jobs to {dis,en}able in a file makes adding/removing
> of jobs painful.
>
> An idea could be:
>
> profiles/single/disable_all
> profiles/single/enable/sh
>
> profiles/no-x/enable_all
> profiles/no-x/disable/gdm
> profiles/no-x/disable/kdm
> profiles/no-x/disable/wdm
>
> Files could be empty of course.
> Files named disable_all and enable_all have a special meaning.
>
> I think it would be also nice to have the "provides" keyword in the
> job definition, so one could use:
>
> profiles/no-x/enable_all
> profiles/no-x/disable/display_manager
>
> What do you think?
> SysVish? Yes, maybe.
Yes. We had a discussion about this earlier in IRC. It's quite easy to
do this with package installation - just have a tool to manage the
profiles, like chkconfig with sysv.
Thanks,
Alex
--
Alex Smith
Frugalware Linux developer - http://www.frugalware.org
More information about the upstart-devel
mailing list