Skip to content

Fix user manager shutdown #84

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Fix user manager shutdown #84

merged 2 commits into from
Apr 26, 2019

Conversation

donald
Copy link
Collaborator

@donald donald commented Apr 23, 2019

Shutdown automount and remote file systems after user managers.
Maybe this prevents the shutdown delays "Stopping User Manager for user NNN" we see so often.

Also remove the lazy-umount thing, systemd now handles this.

We no longer need this service, because the current systemd doesn't
shut down the network before unmounting remote filesystems.

Systemd now generates a mount unit for every mount created at runtime.
Network mount units automatically get a Atfer= dependency on
remote-fs-pre.target, network.target and network-online.target.

Remove lazy-umount-nfs.service.
When the systemd user managers ( systemd --user ) are killed during
shutdown they still need access to the users homes. Add dependencies.
@pmenzel
Copy link
Contributor

pmenzel commented Apr 23, 2019

The upstream systemd service unit of autofs/automount has the ordering dependency below.

After=network.target ypbind.service sssd.service network-online.target remote-fs.target rpc-statd.service rpcbind.service

MarIuX’s has:

Requires=basic.target
After=basic.target

@pmenzel
Copy link
Contributor

pmenzel commented Apr 26, 2019

My comments can be fixed in follow-up commits.

@pmenzel pmenzel merged commit 6c2fd14 into master Apr 26, 2019
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants