Skip to content

Commit

Permalink
Add dependencies for systemd user instances
Browse files Browse the repository at this point in the history
When the systemd user managers ( systemd --user ) are killed during
shutdown they still need access to the users homes. Add dependencies.
  • Loading branch information
donald committed Apr 23, 2019
1 parent 422d89d commit 6202235
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ install_exec nfsdtop/nfsdtop "$DESTDIR$usr_sbindir/n
install_data serial-log/serial-log\@.service "$DESTDIR$systemdunitdir/serial-log@.service"
install_exec serial-log/serial-log "$DESTDIR$usr_exec_prefix/libexec/serial-log"
install_data misc_systemd_units/nfsd.service "$DESTDIR$systemdunitdir/nfsd.service"
mkdir -p $DESTDIR$systemdunitdir/user@.service.d
install_data misc_systemd_units/user@.service.d/depend-on-remote-homes.conf \
"$DESTDIR$systemdunitdir/user@.service.d/depend-on-remote-homes.conf"
exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# We need access to /home/$USER when we shut down
# the systemd user instances.

[Unit]
After=automount.service
After=remote-fs.target

0 comments on commit 6202235

Please sign in to comment.