Beanstalkd不会写日志

时间:2015-01-08 22:06:49

标签: logging ubuntu-14.04 beanstalkd

我在ubuntu 14.04上运行beanstalkd 我的问题是,我根本看不到这项服务的任何日志。

当然我已经在默认情况下输入了条目,并且我尝试更改init.d脚本。但是看起来beanstalk根本没有进行任何记录,或者我做错了。

这是init.d脚本内容。 @ Pentium10,似乎你是对的 - 我在源代码中找到的唯一一个地方就是这一个:https://github.com/kr/beanstalkd/blob/157d88bf9435a23b71a1940a9afb617e52a2b9e9/pkg/beanstalkd.spec.in#L4  https://github.com/kr/beanstalkd/blob/157d88bf9435a23b71a1940a9afb617e52a2b9e9/sd-daemon.h#L83

/etc/init.d/beanstalkd 文件

...

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

...

DAEMON=/usr/bin/beanstalkd # Introduce the server's location here
NAME=beanstalkd             # Introduce the short server's name here
DESC="in-memory queueing server" # Introduce a short description here
#LOGDIR=/var/log/beanstalkd  # Log directory to use

...


#LOGFILE=$LOGDIR/$NAME.log  # Server logfile
DAEMONUSER=beanstalkd   # Users to run the daemons as. If this value
                        # is set start-stop-daemon will chuid the server

0 个答案:

没有答案
相关问题