diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-06 16:26:12 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-05-06 16:26:12 -0700 |
| commit | c4e5e754a027268ebdec417996be381826e3807c (patch) | |
| tree | 308b17e848bcce8e60d862033dae6c0b167355df /utils | |
| parent | 12610762158863b868996d85754ebca0cca2588e (diff) | |
| download | specs-c4e5e754a027268ebdec417996be381826e3807c.tar.gz specs-c4e5e754a027268ebdec417996be381826e3807c.tar.xz specs-c4e5e754a027268ebdec417996be381826e3807c.zip | |
psi-notify: install as a user, not system, service
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/psi-notify.spec | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/utils/psi-notify.spec b/utils/psi-notify.spec index 21821d9..32bbb16 100644 --- a/utils/psi-notify.spec +++ b/utils/psi-notify.spec @@ -34,26 +34,23 @@ export CFLAGS="%{optflags}" %install -install -Dp psi-notify %{buildroot}%{_bindir}/psi-notify -install -Dp psi-notify.service %{buildroot}%{_unitdir}/psi-notify.service +install -Dp %{name} %{buildroot}%{_bindir}/%{name} +install -Dp -m 644 %{name}.service %{buildroot}%{_userunitdir}/%{name}.service %if 0%{?fedora} %post -%systemd_post psi-notify.service +%systemd_user_post %{name}.service %preun -%systemd_preun psi-notify.service - -%postun -%systemd_postun_with_restart psi-notify.service +%systemd_user_preun %{name}.service %endif %files %license LICENSE %doc README.md -%{_bindir}/psi-notify -%{_unitdir}/psi-notify.service +%{_bindir}/%{name} +%{_userunitdir}/%{name}.service %changelog |
