What are you expecting this to do?
TimeoutStartSec
This doesn't force the service to wait for a specified time before it starts.
This is how long the service can take to startup before it times out.
Very few services will take 90 seconds to start up.
If you're wanting a delay, before a service starts, there are at least two ways to do this.
Code:
[Service]
ExecStartPre=/bin/sleep 10
ExecStart=/path/to/your/service
or the other way is a little more complicated.
systemd-time-wait-sync.service:
Follow these steps: This is for Debian/Ubuntu, but Redhat/Fedora is similar.
Just use dnf/rpm instead of apt/dpkg.
Remove chrony if installed: dpkg -l | grep -q "ii *chrony" && apt remove chrony
Enable systemd-timesyncd.service: systemctl enable --now systemd-timesyncd.service
Enable systemd-time-wait-sync.service: systemctl enable --now systemd-time-wait-sync.service
Edit your service unit file (e.g., watchdog.service or nfs-server.service) and add the following lines
Code:
:[Unit]
After=time-sync.target
Wants=time-sync.target
This will make sure that your services start only after the system time has been updated.