← 返回命令列表

Linux command

systemctl-service-watchdogs 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

systemctl service-watchdogs

Enable

systemctl service-watchdogs yes

Disable

systemctl service-watchdogs no

说明

systemctl service-watchdogs gets or sets the global state of service runtime watchdogs. When enabled, systemd monitors services with WatchdogSec= configured and sends SIGABRT to kill them if they fail to send a keep-alive notification within the timeout period. Disabling watchdogs globally stops systemd from killing and restarting unresponsive services, useful during debugging. When called without an argument, prints the current global watchdog state.

参数

yes
Enable the service watchdog logic globally.
no
Disable the service watchdog logic globally.

FAQ

What is the systemctl-service-watchdogs command used for?

systemctl service-watchdogs gets or sets the global state of service runtime watchdogs. When enabled, systemd monitors services with WatchdogSec= configured and sends SIGABRT to kill them if they fail to send a keep-alive notification within the timeout period. Disabling watchdogs globally stops systemd from killing and restarting unresponsive services, useful during debugging. When called without an argument, prints the current global watchdog state.

How do I run a basic systemctl-service-watchdogs example?

Run `systemctl service-watchdogs` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does yes do in systemctl-service-watchdogs?

Enable the service watchdog logic globally.