Re: Hooks for automount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux