/lib/systemd-cron/boot_delay is in systemd-cron 1.5.13-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/python3
import sys
import time
try:
delay = int(sys.argv[1]) * 60
except:
sys.exit("Usage: %s <minutes>" % sys.argv[0])
f = open('/proc/uptime', 'r')
uptime = int(float(f.readline().split()[0]))
if delay > uptime:
try:
time.sleep(delay - uptime)
except KeyboardInterrupt:
pass
|