On Sun, 2021-03-14 at 06:38 +0800, Ed Greshko wrote:
[root@f33k ~]# systemctl status dock.service ● dock.service - Power the dock up or down Loaded: loaded (/etc/systemd/system/dock.service; static) Active: inactive (dead)
[root@f33k ~]# systemctl start dock.service
[root@f33k ~]# ll /var/tmp/auto total 0 -rw-r--r--. 1 root root 0 Mar 14 06:35 start -rw-r--r--. 1 root root 0 Mar 14 06:35 stop
See the issue?
Your dock.service, if run, would power-up and then immediately power-down the dock.
Indeed. Does that mean I need separate dock-up and dock-down services?
Also, the .service is not being invoked by the .mount (I shouldn't have to start it manually), presumably because the .automount isn't running.
BTW, is there a recommended way to re-run this kind of test cleanly, without having to reboot the system, e.g. after modifying one the various unit files? I know about systemd daemon-reload but that doesn't seem to be enough.
poc