SLES 12:客户服务既不是服务也不是目标服务?

时间:2018-03-27 10:11:20

标签: linux opensuse suse sles

我正在使用已安装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"

2 个答案:

答案 0 :(得分: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版本。通常它很直接。 Examplehttps://serverfault.com/questions/690155/whats-the-easiest-way-to-make-my-old-init-script-work-in-systemd

答案 1 :(得分:0)

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

启动BigFix Client。
# 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