19.10 2.服务似乎无法在Ubuntu19.10上工作。
当我做ls /run/ulog/ulogd.pid时,它什么也找不到。我认为文件无法生成。
当我执行ls -lt /run时,它将显示正确的访问权限:
drwxr-xr-x 2 ulog ulog 40 Feb 16 17:32 ulog
Feb 16 17:32:28 stag-1 ulogd[7074]: registering plugin `JSON'
Feb 16 17:32:28 stag-1 ulogd[7074]: building new pluginstance stack: 'ct1:NFCT,ip2str1:IP2STR,print1:PRINTFLOW,emunfct1:LOGEMU'
Feb 16 17:32:28 stag-1 ulogd[7074]: can't find requested plugin NFCT
Feb 16 17:32:28 stag-1 ulogd[7074]: building new pluginstance stack: 'ct2:NFCT,ip2str1:IP2STR,jsonnfct1:JSON'
Feb 16 17:32:28 stag-1 ulogd[7074]: can't find requested plugin NFCT
Feb 16 17:32:28 stag-1 ulogd[7074]: not even a single working plugin stack
Feb 16 17:32:28 stag-1 systemd[1]: ulogd2.service: Can't open PID file /run/ulog/ulogd.pid (yet?) after start: No such file or directory
Feb 16 17:32:28 stag-1 systemd[1]: ulogd2.service: Failed with result 'protocol'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit ulogd2.service has entered the 'failed' state with result 'protocol'.
Feb 16 17:32:28 stag-1 systemd[1]: Failed to start Netfilter Userspace Logging Daemon.
-- Subject: A start job for unit ulogd2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit ulogd2.service has finished with a failure.
--
-- The job identifier is 26836 and the job result is failed.发布于 2020-02-16 19:29:28
我找到了原因。错误信息对我来说不清楚。默认情况下,ulogd2在Ubuntu19.10中注释掉了大多数插件。(与18.04不同)。
我必须删除#(注释-in)以下四个才能使它正常工作。然后它将自动创建那个pid文件。这不是我第一次想到的权限问题。
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inpflow_NFCT.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IP2STR.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_PRINTFLOW.so"
plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_LOGEMU.so"https://askubuntu.com/questions/1210943
复制相似问题