How To: Delay starting of Agent at boot time on Linux/UNIX
search cancel

How To: Delay starting of Agent at boot time on Linux/UNIX

book

Article ID: 251849

calendar_today

Updated On:

Products

Workload Automation Agent

Issue/Introduction

How can we force a delay to start the agent at boot time on UNIX/Linux server?

Environment

Release : 12

Resolution

Your System Administrator can create a Timer in systemd to delay the starting of the agent. See section 4.1 Monotonic timer in this non-Broadcom Wiki link for details.

You'll disregard the "OnUnitActiveSec=1w" piece of code in the example provided in the Wiki.

https://wiki.archlinux.org/title/Systemd/Timers

 

Example:

/etc/systemd/system/foo.timer
[Unit]
Description=Run foo on boot

[Timer]
OnBootSec=15min

[Install]
WantedBy=timers.target