Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

PowerBroker Error: Received error while querying lwsmd. [code 0x00000002]

Leer en espanol
PowerBroker Error: Received error while querying lwsmd. [code 0x00000002]

Table of contents

simple ===

This time we are going to see how to solve the error »Error: Received error while querying lwsmd. [code 0x00000002] » that shows us when trying to add a server to our domain controller

We simply have to create the service configuration file with the following parameters:

config
cat /lib/systemd/system/lwsmd.service
[Unit]

Description=BeyondTrust PBIS Service Manager

After=network.target
[Service]

Type=forking

EnvironmentFile=/opt/pbis/libexec/init-base.sh

ExecStart=/opt/pbis/sbin/lwsmd –start-as-daemon

ExecReload=/opt/pbis/bin/lwsm refresh

ExecStop=/opt/pbis/bin/lwsm shutdown

# We want systemd to give lwsmd some time to finish gracefully, but still want

# it to kill lwsmd after TimeoutStopSec if something went wrong during the

# graceful stop. Normally, Systemd sends SIGTERM signal right after the

# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give

# lwsmd time to finish.

KillSignal=SIGCONT

PrivateTmp=true
[Install]

WantedBy=multi-user.target nss-lookup.target

We create a link

text
cd /etc/systemd/system

ln -s /lib/systemd/system/lwsmd.service

Finally we start the service and enable it.

Bash
service lwsmd start

systemctl enable lwsmd.service

Comments