LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1054|回复: 4

關于/etc/syslog.conf的問題

[复制链接]
发表于 2005-5-3 17:36:34 | 显示全部楼层 |阅读模式
我用的是RHAS3
我在/etc/syslog.conf裏麵加勒一個
rm.* /var/log/rmxx
主要是為勒試驗,但我設置完后重啓勒xinetd服務
#service xinetd restart
?K重啓勒
#service syslog restart
但我的/var/log目錄下?K沒有齣現rmxx着個文件啊
這是為什么?
我要自己建立rmxx着個文件嘛?

下麵是我的/etc/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;news.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.
mail.* /var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log

#
# INN
#
news.=crit /var/log/news/news.crit
news.=err /var/log/news/news.err
news.notice /var/log/news/news.notice
rm.* /var/log/rmxx



shell下齣現勒這個提示

syslogd:unknown facility name"rm"

不知是什么意思

help me.
发表于 2005-5-3 22:29:04 | 显示全部楼层
请看一看syslog的manpage,不是随便可以增加facility的, 只有7种可以选。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-4 08:18:19 | 显示全部楼层
If you need the libc function syslog(),  (that  talks  to  syslogd(8)),
       then look at syslog(3).  The system call of this name is about control-
       ling the kernel printk()  buffer,  and  the  glibc  version  is  called
       klogctl().
我看了man  找到上面那个说明
我想它能够接收谁的信息看意思是在内核中定义的吧?
其中printk()是不是一个内核的函数啊?
兄弟们帮我想想办法
回复 支持 反对

使用道具 举报

发表于 2005-5-5 03:40:59 | 显示全部楼层
Post by txkss
If you need the libc function syslog(),  (that  talks  to  syslogd(8)),
       then look at syslog(3).  The system call of this name is about control-
       ling the kernel printk()  buffer,  and  the  glibc  version  is  called
       klogctl().
我看了man  找到上面那个说明
我想它能够接收谁的信息看意思是在内核中定义的吧?
其中printk()是不是一个内核的函数啊?
兄弟们帮我想想办法


不好意思,再看了man一下,不止7种了。但还是不是随便增减的。facility是系统中subsystems决定的,不认为可以在内核中增加。不清楚printk()函数,但从上面的意思看,syslog()调用是用来调控printk() buffer, 我想就是控制那些信息去哪里的意思吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-5 08:25:15 | 显示全部楼层
兄弟们能否帮我列出现有的redhat到底支持几种服务呢

我没有发现他们的名细

谢了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表