[Install] for static systemd unit file?
Felipe Sateler
fsateler at debian.org
Wed Mar 1 22:40:12 GMT 2017
On Wed, Mar 1, 2017 at 5:51 PM, Patrick Schleizer
<patrick-mailinglists at whonix.org> wrote:
> Michael Biebl:
>> Am 01.03.2017 um 21:35 schrieb Patrick Schleizer:
>>> Hi!
>>>
>>> TLDR:
>>>
>>> How should the [Install] section for static systemd unit file look like?
>>
>> The obvious question is: why does this service need to be statically
>> enabled?
>
> Given the example... With this socket / service file combination, I
> wouldn't know how to enable the service non-statically.
WantedBy=multi-user.target
> In the current
> implementation it looks to me right, and works.
>
> I am still interested to do things the right way. Hence, I am asking
> here for advice.
Is there a reason you *don't* want to start your service until it is
activated? If so, then this warning is a false positive, and can be
safely ignored. If not, just add the install section.
This warning was introduced in #832771. As I argued in that bug, there
are plenty of reasons one wouldn't want to have a service enabled on
its own. Some were fixed in #837057, but not all.
--
Saludos,
Felipe Sateler
More information about the Pkg-systemd-maintainers
mailing list