Hello,

I've seen that needrestart reports the user processes when run as
user. Could you extend needrestart to show the dialogue and restart the
systemd units:

```
% id -u
1000

% needrestart
Prüfe Prozesse...
Veraltete Prozesse:
dbus-daemon[885], emacs[12635], firefox[30570], firefox-bin[20556], Privileged 
Cont[26250], pulseaudio[29837], Web Content[21597], WebExtensions[20752],
 Xorg[12276]

% systemctl --user status -n0 29837 30570 2>/dev/null |grep '^●' |sed 's/ 
-.*//; s/.* //' |uniq
pulseaudio.service
ff.service

% systemctl --user restart pulseaudio.service
```

Regards Jörg

-- 
Die Erde ist das einzigste Irrenhaus, das von seinen eigenen Insassen
verwaltet wird.
                                                (U. Schmidt)

Attachment: signature.asc
Description: PGP signature

Reply via email to