zoukankan      html  css  js  c++  java
  • No journal files were found.

    root@ubuntu:/# journalctl -r -t  Openvmi-Container-Manager 
    No journal files were found.
    -- No entries --
    root@ubuntu:/# systemctl restart systemd-journald
    Failed to restart systemd-journald.service: Unit systemd-journald.service not found.
    root@ubuntu:/# 
    ubuntu@ubuntu:/lib/systemd/system$ cat systemd-journald.service
    #  SPDX-License-Identifier: LGPL-2.1+
    #
    #  This file is part of systemd.
    #
    #  systemd is free software; you can redistribute it and/or modify it
    #  under the terms of the GNU Lesser General Public License as published by
    #  the Free Software Foundation; either version 2.1 of the License, or
    #  (at your option) any later version.
    
    [Unit]
    Description=Journal Service
    Documentation=man:systemd-journald.service(8) man:journald.conf(5)
    DefaultDependencies=no
    Requires=systemd-journald.socket
    After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
    Before=sysinit.target
    
    [Service]
    Type=notify
    Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
    ExecStart=/lib/systemd/systemd-journald
    Restart=always
    RestartSec=0
    StandardOutput=null
    Nice=-1
    WatchdogSec=3min
    FileDescriptorStoreMax=4224
    CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
    MemoryDenyWriteExecute=yes
    RestrictRealtime=yes
    RestrictNamespaces=yes
    RestrictAddressFamilies=AF_UNIX AF_NETLINK
    SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
    SystemCallArchitectures=native
    LockPersonality=yes
    IPAddressDeny=any
    root@ubuntu:/# systemctl enable systemd-journald.service
    The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
    settings in the [Install] section, and DefaultInstance for template units).
    This means they are not meant to be enabled using systemctl.
    Possible reasons for having this kind of units are:
    1) A unit may be statically enabled by being symlinked from another unit's
       .wants/ or .requires/ directory.
    2) A unit's purpose may be to act as a helper for some other unit which has
       a requirement dependency on it.
    3) A unit may be started when needed via activation (socket, path, timer,
       D-Bus, udev, scripted systemctl call, ...).
    4) In case of template units, the unit is meant to be enabled with some
       instance name specified.

    添加

    [Install]
    WantedBy=multi-user.target
  • 相关阅读:
    知名网站的技术发展历程
    自己的代码仓库源码
    重构着讲解设计原则与模式——从DIP中“倒置”的含义说接口的正确使用
    jQuery Colorbox插件
    测试是否支持DOMAttrModified
    python(贪吃蛇)
    界面简洁,无广告,无插件,无网络却功能强播放器
    Asp.Net MVC 4 Web API
    理解MVC底层运行机制
    BS单点登陆(SSO)实现代码展示
  • 原文地址:https://www.cnblogs.com/dream397/p/14061295.html
Copyright © 2011-2022 走看看