Page MenuHomePhabricator

zuul systemd service: [/lib/systemd/system/zuul.service:15] Failed to parse usec_t value, ignoring: infinity
Closed, ResolvedPublic

Description

Spotted on contint1001 when looking at systemctl status zuul:

Jul 18 08:41:36 contint1001 systemd[1]: [/lib/systemd/system/zuul.service:15] Failed to parse usec_t value, ignoring: infinity

/lib/systemd/system/zuul.service
 1 [Unit]
 2 Description=Zuul Server
 3 After=syslog.target network.target
 4 
 5 [Service]
 6 User=zuul
 7 Group=zuul
 8 
 9 Environment=STATSD_HOST=localhost
10 Environment=STATSD_PORT=8125
11 
12 ExecStart=/usr/bin/zuul-server -d -c /etc/zuul/zuul-server.conf
13 ExecReload=/bin/kill -HUP $MAINPID
14 ExecStop=/bin/kill -USR1 $MAINPID
15 TimeoutStopSec=infinity
16 
17 [Install]
18 WantedBy=multi-user.target

Event Timeline

That is with systemd 215-17+deb8u13 from Jessie. systemd.service (5) states:

TimeoutStopSec=

Configures the time to wait for stop. If a service is asked to stop, but does not terminate in the specified time, it will be terminated forcibly via SIGTERM, and after another timeout of equal duration with SIGKILL (see KillMode= in systemd.kill(5)). Takes a unit-less value in seconds, or a time span value such as "5min 20s".
Pass "0" to disable the timeout logic. Defaults to TimeoutStartSec= from the manager configuration file.

While on Stretch with 232-25+deb9u11, the man page says:

Pass "infinity" to disable the timeout logic.

Change 524174 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] zuul: fix systemd Service/TimeoutStopSec

https://gerrit.wikimedia.org/r/524174

Change 524174 merged by Fsero:
[operations/puppet@production] zuul: fix systemd Service/TimeoutStopSec

https://gerrit.wikimedia.org/r/524174

contint1001:~$ systemctl show zuul|grep TimeoutStopUSec
TimeoutStopUSec=0