home icon indicating copy to clipboard operation
home copied to clipboard

Runsvdir still needs to be started manually

Open Earnestly opened this issue 9 years ago • 0 comments

On my system runit's runsvdir has to be explicitly run after login as I've not managed to use systemd to start this as a per-user system service and would prefer to avoid adding this kind of logic to my shell's profile.

However if I cannot convince systemd to run this as a system service with User=%i instantiation I'll have to probably involve the login shell with something like:

if hash runsvdir 2> /dev/null && ! pgrep -U "$UID" -x runsvdir; then
    runsvdir "$LOCALDIR"/service &
fi

There's also the potential to use pam's pam_exec but that might involve even more wrappers.

Earnestly avatar Jan 19 '16 22:01 Earnestly