mirror of
https://github.com/systemd/systemd.git
synced 2024-12-15 05:03:34 +08:00
cde93897cd
Adds a new call sd_event_set_watchdog() that can be used to hook up the event loop with the watchdog supervision logic of systemd. If enabled and $WATCHDOG_USEC is set the event loop will ping the invoking systemd daemon right after coming back from epoll_wait() but not more often than $WATCHDOG_USEC/4. The epoll_wait() will sleep no longer than $WATCHDOG_USEC/4*3, to make sure the service manager is called in time. This means that setting WatchdogSec= in a .service file and calling sd_event_set_watchdog() in your daemon is enough to hook it up with the watchdog logic.
18 lines
608 B
SYSTEMD
18 lines
608 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Locale Service
|
|
Documentation=man:systemd-localed.service(8) man:locale.conf(5) man:vconsole.conf(5)
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/localed
|
|
|
|
[Service]
|
|
ExecStart=@rootlibexecdir@/systemd-localed
|
|
BusName=org.freedesktop.locale1
|
|
CapabilityBoundingSet=
|
|
WatchdogSec=1min
|