[Whonix-devel] [Install] for static systemd unit file?

Patrick Schleizer patrick-mailinglists at whonix.org
Wed Mar 1 22:58:00 GMT 2017


Michael Biebl:
> Am 01.03.2017 um 21:51 schrieb Patrick Schleizer:
>> 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.
> 
> What's the problem?
> Services are typically hooked up in multi-user.target, sockets in
> sockets.target.

If I add the service to multi-user.target, the service will initially
exit non-zero and systemd regards it failed. Happens because the service
was "just started" rather than invoked by socket activation.
/lib/systemd/systemd-socket-proxyd will complain that no socket had been
passed.





More information about the Pkg-systemd-maintainers mailing list