【问题标题】:SLES 12: Client service neither service nor target?SLES 12:客户端服务既不是服务也不是目标?
【发布时间】:2018-09-05 16:48:16
【问题描述】:

我正在使用安装了 rpm 的 SLES 12 VM。在安装 rpm 时,我得到以下注意事项

hostname:~ # rpm -ivh BESAgent-9.5.8.38-sle11.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:BESAgent-9.5.8.38-sle11          ################################# [100%]

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

besclient                 0:off  1:off  2:on   3:on   4:off  5:on   6:off

当我尝试启动服务时,我不断收到错误

hostname:~ # service besclient start
besclient is neither service nor target!?

我认为这是因为我在安装 RPM 时收到了通知。我还注意到systemctl list-unit-files 没有列出besclient.service

当我尝试使用 init.d 启动服务时,我得到以下信息

hostname:~ #  /etc/init.d/besclient start
redirecting to systemctl start besclient.service
Failed to start besclient.service: Unit besclient.service failed to load: No such file or directory.

以下是操作系统版本详情:

SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
NAME="SLES_SAP"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12 SP2"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp2"

【问题讨论】:

    标签: linux opensuse suse sles


    【解决方案1】:

    您遇到的问题与在 SUSE 11 和 SUSE 12 上管理服务的不同方式有关。查看您提供的信息似乎您正在尝试安装一个包含针对 SUSE 11 的服务的包基于 SUSE 12 的服务器。 SUSE 11.x 使用 sysv initd 而 SUSE 12.x 使用 systemd 进行服务管理。您应该获得一个支持 SUSE Linux Enterprise Server 12 的包,或者使用当前包中的 initd 脚本来创建您自己的 systemd 版本的服务定义。通常它是相当直截了当的。 Example:https://serverfault.com/questions/690155/whats-the-easiest-way-to-make-my-old-init-script-work-in-systemd

    【讨论】:

      【解决方案2】:

      问题与可在 BES 安装文件夹中找到的操作站点标头文件 (actionsite.afxm) 相关。将您的操作站点标头复制到 Linux BES 客户端(标头包含配置、许可证和安全信息)。报头应命名为“actionsite.afxm”,因此将其重命名为“actionsite.afxm”并将其放置在以下位置:/etc/opt/BESClient/actionsite.afxm。 然后通过运行 /etc/init.d/besclient start 命令启动 BigFix 客户端

      # ls  /etc/opt/BESClient/actionsite.afxm
      /etc/opt/BESClient/actionsite.afxm
      
      # service besclient start
      
      # systemctl status besclient.service
      ● besclient.service - LSB: Start BESClient daemon
         Loaded: loaded (/etc/init.d/besclient; bad; vendor preset: disabled)
         Active: active (running) since...
           Docs: man:systemd-sysv-generator(8)
        Process: 35168 ExecStart=/etc/init.d/besclient start (code=exited, status=0/SUCCESS)
          Tasks: 4 (limit: 512)
         CGroup: /system.slice/besclient.service
                 ├─35178 /opt/BESClient/bin/BESClient
                 └─35179 /opt/BESClient/bin/BESClient -RPMHelper
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-07-17
        • 1970-01-01
        • 2012-09-21
        • 2016-02-23
        • 2013-11-29
        • 2014-08-11
        • 2017-10-11
        • 1970-01-01
        相关资源
        最近更新 更多