What is causing the systemd error: "Timer unit lacks value setting" (no other error messages?)
What is causing the systemd error: "Timer unit lacks value setting" (no other error messages?)
我有以下计时器单元:
[Unit]
Description=Timer for Hive management command: process_payments
[Timer]
Unit=hive-manage@process_payments.service
OnCalendar=*:0/20
[Install]
WantedBy=hive.target
当我使用 systemctl status hive-manage@process-payments.timer
检查计时器状态时,我在日志中看到以下错误:
● hive-manage@process-payments.timer - Timer for Hive management command: process-payments
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Mar 02 21:28:39 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
Mar 02 21:39:06 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
Mar 02 21:39:27 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
经过一番搜索后,大多数人都会得到一条附带的消息,其中提供了有关错误的更多详细信息,但是除了“计时器单元缺少值设置”之外,我没有得到任何上下文。
这个错误不是很有帮助 -- 我不知道有任何名为“value”的设置。
原来我有一个旧单元叫 process-payments
,后来改名为 process_payments
(下划线而不是连字符)。我在 systemctl status
命令中引用了旧名称。
我有以下计时器单元:
[Unit]
Description=Timer for Hive management command: process_payments
[Timer]
Unit=hive-manage@process_payments.service
OnCalendar=*:0/20
[Install]
WantedBy=hive.target
当我使用 systemctl status hive-manage@process-payments.timer
检查计时器状态时,我在日志中看到以下错误:
● hive-manage@process-payments.timer - Timer for Hive management command: process-payments
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Mar 02 21:28:39 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
Mar 02 21:39:06 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
Mar 02 21:39:27 boldidea systemd[1]: hive-manage@process-payments.timer: Timer unit lacks value setting. Refusing.
经过一番搜索后,大多数人都会得到一条附带的消息,其中提供了有关错误的更多详细信息,但是除了“计时器单元缺少值设置”之外,我没有得到任何上下文。
这个错误不是很有帮助 -- 我不知道有任何名为“value”的设置。
原来我有一个旧单元叫 process-payments
,后来改名为 process_payments
(下划线而不是连字符)。我在 systemctl status
命令中引用了旧名称。