I have a systemd timer:
[Unit] Description=My timer Wants=network-online.target After=network-online.target [Timer] OnBootSec=10min OnUnitInactiveSec=10min [Install] WantedBy=timers.target And a corresponding service:
[Unit] Description=My service [Service] Type=simple ExecStart=/usr/bin/my-script.sh Which runs every 10 minutes with no problems but it also runs immediately after the system has started whereas I expected the OnBootSec command to delay it for 10 minutes. What am I misunderstanding? This is on Ubuntu 16.04.
[Install] WantedBy=mytimer.targetat the end of your unit file for your service?!