Summary: | DOC: the man pages should clarify that "systemctl daemon-reload" is the way to make systemd reread /etc/fstab | ||
---|---|---|---|
Product: | systemd | Reporter: | Arch <archont> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Arch
2015-02-09 19:54:20 UTC
The right way to reload fstab is via "systemctl daemon-reload". The generators should not be invoked directly, except for debugging purposes, and doing so is not sufficient, as they just write out new configuration but PID 1 won't read it in... But yeah, the docs should clarify this. Then, it appears there is a bug, since 'systemctl daemon-reload' does not work for me and other Arch Linux users: https://bbs.archlinux.org/viewtopic.php?id=192991 What is "does not work for me" supposed to mean? What precisely doesn't work? What precisely do you expect it to do that it doesn't do? What precisely does it do that you don't expect? Note that "daemon-reload" among other things invokes the generators. Hence, if you invoke them directly you do less than the "daemon-reload" does... Hm, I did test it all again and this time it seems to work. I.e. 1. Modify fstab (added cifs automount in my case) 2. 'systemctl daemon-reload' 3. 'systemctl list-units --all | grep "automount"' lists the new mounts 4. 'systemctl start my-share.automount' 5. 'ls -la /path/to/my-share' shows the files Similarly, it works for removing the shares from fstab and stopping the automount service. Sorry for the fuss. When I tested few days ago, I may have not used the '--all' switch, otherwise I cannot explain it to myself. I have also updated the OS in the meantime, though I guess it would be quite a coincidence if there was a bug earlier and resolved now. To sum it up, I'd propose to modify the man page to make it clear that point 2 and 4 must be run manually after fstab is modified. Thanks for your work. I added generator documentation in http://cgit.freedesktop.org/systemd/systemd/commit/?id=432d59656b. I think it makes things clear enough. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.