On 16/08/17 10:45 AM, Per Jessen wrote:
Anton Aylward wrote:
On 16/08/17 07:04 AM, Per Jessen wrote:
Roger Oberholtzer wrote:
on Leap 42.3:
If I make a change to /etc/fstab so that, for example, I make an item be automounted by systemd, how can I get systemd to re-read this file without rebooting?
I suspect: systemctl daemon-reload
Indeed, that is a literally correct to the grammatical way the question was phrased. Yes that will cause the various con figs to be re-read.
I rather suspects, though, that Roger would be interested in having the changes to /etc fstab acted upon as well.
Anton, he did say "... would like to see that the item gets mounted when accessed" - so after reloading, accessing the mount point should cause it to be mounted, per fstab.
My experience was with 13.2 systemd; I don't automount any more, so maybe this is out of date. But systemd doesn't read and act on /etc/fstab. What it does do when it execs is run a generator program. This generator file then produces unit files, one per line of the fstab file. Then the mount function is applied to each of those files. Merely re-reading fstab isn't enough, the generator has to run and the dot-mount unit files have to be generated again and the mount program run on each, perhaps idempotentently, and the auto-mount function has to be restarted to take not of the new unit file. That's why the reexec. Have things changed so that a reread cascades to the required reexec of the generator and a rerun of the mount? I've only progressed as far as 42.2 and haven't used auto mount for some while and really don't have to set up 42.3 & automount just to see of a reload triggers the generator by putting a watch-for-change on the appropriate temporary unit files and so on down the line. Or perhaps it is all vocal enough in the log file to report all this. But lets face it, a systemctl reload; systemctl reexec isn't exactly going to cripple you give you time to brew a new pot of coffee, visit the washroom, chat up the receptionist and still find it waiting for completion. http://www.jokelibrary.net/occupations/pilot.html#pilots_show-off -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org