相关疑难解决方法(0)

通过 syslog 记录 atd 消息

我正在运行 CentOS 5.3 并想记录来自“at”守护进程的所有消息。我的 syslog.conf 包含以下条目:

cron.* /var/log/cron
Run Code Online (Sandbox Code Playgroud)

我假设 syslog 中的 cron 行是指“cron、anacron、at 和 batch”的整个系列。然而,虽然 cron 和 anacron 操作似乎被 looged,但“at”操作不会被记录。我如何记录 atd 操作?

感谢您的关注

(已添加)我想添加我的 syslog.conf 的内容,以防出现错误:

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                         /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none        /var/log/messages

# The authpriv file has restricted access.
authpriv.*                      /var/log/secure

# Log all the mail messages in one place. …
Run Code Online (Sandbox Code Playgroud)

at syslog

6
推荐指数
1
解决办法
5763
查看次数

标签 统计

at ×1

syslog ×1