【问题标题】:newsyslog: pid file doesn't exist: /var/run/lighttpd.pidnewsyslog:pid 文件不存在:/var/run/lighttpd.pid
【发布时间】:2012-05-11 02:12:39
【问题描述】:

我们在 FreeBSD 7.2-RELEASE 上运行 lighttpd-1.4.26。每次我们重启机器,并且 lighttpd 是通过 rc 脚本启动的,pid 文件不会自动写入 /var/run/lighttpd.pid。 但是,如果我们通过运行 /usr/local/etc/rc.d/lighttpd start 手动启动 lig​​httpd,pid 文件就可以了。

有人知道如何解决这个问题吗?

【问题讨论】:

  • RC 脚本运行的用户是否与您手动启动时使用的用户相同?另外,你是否在你的 conf 中设置了 server.username 和 server.groupname?

标签: freebsd lighttpd pid rc


【解决方案1】:

当您说“lighttpd 由 rc 脚本启动”时,您是指 /usr/local/etc/rc.d/lighttpd 还是其他一些脚本?

因为你真的应该使用相同的脚本——事实上,如果你在 rc.conf 中设置了 lighthttpd_enable,/usr/local/etc/rc.d/lighttpd 会在启动时为你启动它——但是你的措辞让我觉得,你在启动时使用了不同的脚本。甚至可能是,您为此目的编辑了 /etc/rc(一个很大的禁忌)。

【讨论】:

    猜你喜欢
    • 2018-03-23
    • 2017-06-28
    • 2015-06-23
    • 1970-01-01
    • 1970-01-01
    • 2017-08-13
    • 2014-10-02
    • 2023-01-30
    • 2015-05-31
    相关资源
    最近更新 更多