[systemd-devel] Antw: [EXT] Re: successful mount starts a service - how?
>>> Andrei Borzenkov schrieb am 19.01.2021 um 06:30 in Nachricht <3a365c71-004e-031e-4153-80c376d80...@gmail.com>: > 19.01.2021 04:00, lejeczek пишет: >> hi guys. >> >> I'm fiddling with it but have run out of options/ideas. >> What I would like to have is systemd starts a service when a device, in >> my case a crypt-luks device, gets mounted which mount would happen by >> manual 'cryptsetup open' > > I am not aware that "cryptsetup open" mounts anything. I do not even see > any option to specify mount point in its invocation. Please show exact > command you are using that "mounts" encrypted container. But it will make some device (/dev/mapper) to appear. > >> I see when that manual action takes place then systemd changes status of >> a home.mount (which is in fstab) to "active" - and it's here where I >> hope systemd would auto-start a service. >> Is such a "simple" thing possible? >> many thanks, L >> ___ >> systemd-devel mailing list >> systemd-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/systemd-devel > > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] successful mount starts a service - how?
19.01.2021 04:00, lejeczek пишет: > hi guys. > > I'm fiddling with it but have run out of options/ideas. > What I would like to have is systemd starts a service when a device, in > my case a crypt-luks device, gets mounted which mount would happen by > manual 'cryptsetup open' I am not aware that "cryptsetup open" mounts anything. I do not even see any option to specify mount point in its invocation. Please show exact command you are using that "mounts" encrypted container. > I see when that manual action takes place then systemd changes status of > a home.mount (which is in fstab) to "active" - and it's here where I > hope systemd would auto-start a service. > Is such a "simple" thing possible? > many thanks, L > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] successful mount starts a service - how?
hi guys. I'm fiddling with it but have run out of options/ideas. What I would like to have is systemd starts a service when a device, in my case a crypt-luks device, gets mounted which mount would happen by manual 'cryptsetup open' I see when that manual action takes place then systemd changes status of a home.mount (which is in fstab) to "active" - and it's here where I hope systemd would auto-start a service. Is such a "simple" thing possible? many thanks, L ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel