Created
January 16, 2021 22:24
-
-
Save mvidaldp/2c1c1a516472f7ccc6bfc5cea0502472 to your computer and use it in GitHub Desktop.
Example systemd timer to start a unit service after a specific time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Start service.service 3 minutes after default.target | |
[Timer] | |
Unit=service.service | |
# set to desired time | |
OnBootSec=180s | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment