[packages/mpd] - add systemd user service startup, rel 2
Jan Palus
atler at pld-linux.org
Mon Feb 28 23:30:41 CET 2022
On 09.01.2022 22:57, baggins wrote:
> commit 361f865ee1be0363de3c94ee9e89132084fa38fc
> Author: Jan Rękorajski <baggins at pld-linux.org>
> Date: Sun Jan 9 22:56:39 2022 +0100
>
> - add systemd user service startup, rel 2
>
> mpd.spec | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
> ---
> diff --git a/mpd.spec b/mpd.spec
> index 523fd45..adacc57 100644
> --- a/mpd.spec
> +++ b/mpd.spec
> @@ -289,6 +289,7 @@ for f in mpd.log; do
> done
> /sbin/chkconfig --add mpd
> %systemd_post %{name}.service %{name}.socket
> +%systemd_user_post %{name}.service %{name}.socket
>
> %post icons
> %update_icon_cache hicolor
A word of warning: %systemd_user_post eventually leads to enabling units
globally by default which effectively means user has no chance of
disabling service on her/his own. It's still possible to mask service
completely but socket activated user services are simply not possible
(for which service should be disabled). Personally I pretty much hate it
as a default but I will get by with:
/etc/systemd/user-preset/99-default.preset:
disable *
More information about the pld-devel-en
mailing list