[systemd-devel] How to add startup delay?

Martin Pitt martin.pitt at ubuntu.com
Tue Jan 12 05:12:27 PST 2016


Hello Masanari,

Masanari Iida [2016-01-12 22:07 +0900]:
> My question is How can I add 30sec delay for squid.service startup ?

The simplest thing would be to add a drop-in
/etc/systemd/system/squid.service/delay.conf with

  [Service]
  ExecStartPre=/bin/sleep 30

systemd has timer units too, but setting those up is probably not
worth the effort for this.

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the systemd-devel mailing list