Re: Systemd Preset Policy

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

 



Hello ,

On Sáb, 2015-07-25 at 05:00 +0000, Zbigniew Jędrzejewski-Szmek wrote:
> On Sat, Jul 25, 2015 at 04:10:28AM +0100, Sérgio Basto wrote:

(snip)

> > This kind of scriptlet still works on Fedora 22 (updated), on a new
> > installation ? 
> Yes, that still works, but should be converted to the new way of doing
> things.

OK thanks for clear this up .

>  So most likely you'd want to first file a bug against
> fedora-release (see below), and after it is resolved, modify your
> package to use %systemd_post.

> > Other wiki page shows that PackagePresets are from Fedora 18 ! [3]
> That is when this functionality was originally introduced. What changed
> now is that presets has become *the* official way to enable services by
> default. It is less convenient for packagers, but is more convenient for
> admins and products.
> 
> > And what is the best way to set a preset for a service ? that we want
> > enable by default, when is installed .
> > Note: I'm asking this because I don't saw any example on package
> > guidelines. 
> [2] shows the syntax in the spec file (common for all services), and [3]
> shows the additional steps which need to be taken for enabled-by-default
> services.
> 
> [2] https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
> [3] https://fedoraproject.org/wiki/Packaging:DefaultServices#How_to_enable_a_service_by_default


The packages that I'm concerned about are in a third party repo . How we
may workaround this ? is to add one file
in /usr/lib/systemd/system-preset/ ? 


Thanks ,
-- 
Sérgio M. B.

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux