Завершить службу ваншота systemd после истечения времени ожидания

echo "colorscheme elflord" >> ~/.vimrc

Затем повторно -бегите. Мне нравится, легкие комментарии.

0
20.07.2020, 10:12
1 ответ

На справочной странице systemd.serviceговорится:

TimeoutStartSec= Configures the time to wait for start-up. If a daemon service does not signal start-up completion within the configured time, the service will be considered failed and will be shut down again. Takes a unit-less value in seconds, or a time span value such as "5min 20s". Pass "infinity" to disable the timeout logic. Defaults to DefaultTimeoutStartSec= from the manager configuration file, except when Type=oneshot is used, in which case the timeout is disabled by default (see systemd-system.conf(5)).

Меня смутило последнее предложение, которое не означает, что вы не можете повторно -включить TimeoutStartSec. Таким образом, решение так же просто, как добавлениеTimeoutStartSec=10s

1
18.03.2021, 23:18

Теги

Похожие вопросы