• edinbruh@feddit.it
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 hours ago

    Fstab is still there untouched, it’s the temporary units files that get replaced at reload.

    The mount program works as normally, if you edit fstab and then mount -a it will work as expected, it will just warn you that systemd is not aware of the change. It will reload it anyway at the next boot.

    daemon-reload is not daemon-restart, it just makes systemd re-read the configuration to make it aware of the changes, but the services don’t get restarted. Some services (e.g. nginx) can re-read their confuration without restarting, those services are also made aware of the changes when reloading and can be reloaded individually.

    You can edit any systemd units using systemctl edit so you don’t need to reload (fstab is not a systemd unit)

    • Redjard@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      14 hours ago

      You probably mean daemon-reexec, which also does not restart services (it better not, would be really problematic if it did).

      I do mean reload, which has uses, otherwise it wouldn’t even exist and services would simply always reload: You may not want to reload yet, but keep a working state of service definitions in systemd while editing things, similar to typing away in a code file in production without saving yet.
      I don’t see why I would need to “save” all my service definitions to get a usable (non-spammy) mount back, especially when my mount isn’t even part of systemd. How does the message even get sent by mount when mount is not aware of systemd?

      PS: systemd can replace my text editor over my cold dead body

      • edinbruh@feddit.it
        link
        fedilink
        English
        arrow-up
        2
        ·
        12 hours ago

        It doesn’t replace the editor, it creates a stream and opens it in your default text editor. When you write out, it saves the stream to an appropriate drop in file