How runing service Systemd after time sync ntp at boot?
[Raspberry pi 3] Service Systemd
-
Cryologic -
January 16, 2018 at 1:50 PM -
Thread is Unresolved
-
-
- Official Post
NTP is handled by connman
-
NTP is handled by connman
OK. How I can run service after mount USB Drive /dev/sda1?
-
- Official Post
Why would you delay NTP until after a USB drive is mounted? .. that makes no sense.
Please describe the problem you have. Whatever it is, ^ that is not the solution.
-
Why would you delay NTP until after a USB drive is mounted? .. that makes no sense.
Forget NTP. I need run Systemd service after mounting USB drive /dev/sda1
How?
-
- Official Post
Create the service file in /storage/.config/system.d/ and then enable it with systemctl
-
Create the service file in /storage/.config/system.d/ and then enable it with systemctl
I trying, but service running before mount USB.
-
- Official Post
In that case you didn't configure the before/after requirements correctly. In some cases a helper script is required to test for conditions and delay the service activation until things are ready. As we have no idea what you're actually trying to do (and I will stop asking now) .. we can only provide vague advice.
-
I think he needs udev rule?
-
systemd supportsRequiresMountsFor=/path/.. in [Unit] section.