2

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

2 回答 2

1

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

于 2018-04-05T11:11:58.103 回答
0

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

# 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
于 2020-07-22T18:34:17.007 回答