{"id":781,"date":"2015-05-04T11:19:31","date_gmt":"2015-05-04T10:19:31","guid":{"rendered":"http:\/\/thogersens.net\/?p=781"},"modified":"2015-05-04T11:22:06","modified_gmt":"2015-05-04T10:22:06","slug":"while-we-are-waiting-for-beyond-trust","status":"publish","type":"post","link":"https:\/\/jakobsens.net\/?p=781","title":{"rendered":"While we are waiting for Beyond Trust&#8230;"},"content":{"rendered":"<p>If you are using Pbis-open to connect to the Windows AD and you have upgraded to Ubuntu 15.04 you will have noticed that Pbis-open &gt;= 8.2.2.2993 will not start the service lwsmd.<\/p>\n<p>The reason is the service environment on Ubuntu 15.04 have switched to systemd.<\/p>\n<p>Systemd uses a completely different concept for handling services so the package is not compatible.<\/p>\n<p>I was saved by the user <a href=\"https:\/\/askubuntu.com\/users\/404044\/kavirondo\">kavirondo<\/a> from Ask Ubuntu, he\/she made this instruction:<\/p>\n<p>You need to 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.<\/p>\n<p>Create the file lwsmd.service in \/lib\/systemd\/system like this:<\/p>\n<pre><code>nano \/lib\/systemd\/system\/lwsmd.service\r\n<\/code><\/pre>\n<p>Here are the contents (paste this in to the file you created above) (taken from a redhat one) so thanks to them:<\/p>\n<pre><code>[Unit]\r\nDescription=BeyondTrust PBIS Service Manager\r\nAfter=network.target\r\n\r\n[Service]\r\nType=forking\r\nEnvironmentFile=\/opt\/pbis\/libexec\/init-base.sh\r\nExecStart=\/opt\/pbis\/sbin\/lwsmd --start-as-daemon\r\nExecReload=\/opt\/pbis\/bin\/lwsm refresh\r\nExecStop=\/opt\/pbis\/bin\/lwsm shutdown\r\n# We want systemd to give lwsmd some time to finish gracefully, but still want\r\n# it to kill lwsmd after TimeoutStopSec if something went wrong during the\r\n# graceful stop. Normally, Systemd sends SIGTERM signal right after the\r\n# ExecStop, which would kill lwsmd. We are sending useless SIGCONT here to give\r\n# lwsmd time to finish.\r\nKillSignal=SIGCONT\r\nPrivateTmp=true\r\n\r\n[Install]\r\nWantedBy=multi-user.target nss-lookup.target\r\n<\/code><\/pre>\n<p>Once this is done, make a symlink to this file in \/etc\/systemd\/system:<\/p>\n<pre><code>cd \/etc\/systemd\/system\r\nln -s \/lib\/systemd\/system\/lwsmd.service\r\n<\/code><\/pre>\n<p>At this point you should be able to type:<\/p>\n<pre><code>service lwsmd status\r\n<\/code><\/pre>\n<p>and see that the service exists and is enabled.<\/p>\n<p>Then typing:<\/p>\n<pre><code>service lwsmd start\r\n<\/code><\/pre>\n<p>should start it up and have pbis working as expected.<\/p>\n<p>Now to make it work at boot time. Enable the service with this command:<\/p>\n<pre><code>systemctl enable lwsmd.service\r\n<\/code><\/pre>\n<p>It should give some feedback about creating some symlinks.<\/p>\n<p>Then reboot your comp and all should be working.<\/p>\n<p>I hope it was clear enough, and please forgive any typos&#8230; Good luck!<\/p>\n<p>Source:<\/p>\n<ul>\n<li><a href=\"http:\/\/askubuntu.com\/a\/617070\/298448\">http:\/\/askubuntu.com\/a\/617070\/298448<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Pbis-open to connect to the Windows AD and you have upgraded to Ubuntu 15.04 you will have noticed that Pbis-open &gt;= 8.2.2.2993 will not start the service lwsmd. The reason is the service environment on Ubuntu 15.04 have switched to systemd. Systemd uses a completely different concept for handling services so [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[67,69,68,66,4],"class_list":["post-781","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-15-04","tag-active-directory","tag-ad","tag-pbis-open","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=781"}],"version-history":[{"count":4,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/781\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/jakobsens.net\/index.php?rest_route=\/wp\/v2\/posts\/781\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jakobsens.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}