First create a systemd unit file for this service, and then
enable it. The following worked for me on Ubuntu 15.04 (upgraded from
14.04) with PBIS 8.2.2.
Create the file lwsmd.service in /lib/systemd/system like this:
Then typing:
Now to make it work at boot time. Enable the service with this command:
Then reboot your computer and all should be working.
Create the file lwsmd.service in /lib/systemd/system like this:
nano /lib/systemd/system/lwsmd.service
Here are the contents (paste this in to the file you created above).
[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
Once this is done, make a symlink to this file in /etc/systemd/system:cd /etc/systemd/system
ln -s /lib/systemd/system/lwsmd.service
At this point you should be able to type:service lwsmd status
and see that the service exists and is enabled.Then typing:
service lwsmd start
should start it up and have pbis working as expected.Now to make it work at boot time. Enable the service with this command:
systemctl enable lwsmd.service
It should give some feedback about creating some symlinks.Then reboot your computer and all should be working.
No comments:
Post a Comment