<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Shruti;
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">         Actual SDC_HOME is under /opt/apps/current which is symlink of /opt/apps/streamsets-datacollector-3.5.0. So you can consider other paths accordingly.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Krunal.</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> systemd-devel <systemd-devel-bounces@lists.freedesktop.org> on behalf of Krunal Patel <krpatel19@outlook.com><br>
<b>Sent:</b> Monday, October 8, 2018 10:47:07 AM<br>
<b>To:</b> Reindl Harald; systemd-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: [systemd-devel] Systemd not able to spawn Exec permission denied</font>
<div> </div>
</div>
<div>
<meta content="text/html; charset=utf-8">
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
        {font-family:Shruti}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
.x_MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-IN" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">      We have total 6 servers . 1 server is started with switched-root system option. Where sdc.service through systemd running fine. But other 5 servers, systemd is running with –switched-root option where we are not able to start. I
 am not sure  if systemd is corrupted or some other issue.</p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-bottom:double windowtext 2.25pt; padding:0cm 0cm 1.0pt 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm">System unit are as below:</p>
<p class="x_MsoNormal" style="border:none; padding:0cm"> </p>
</div>
<p class="x_MsoNormal">sdc.service</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"># Copyright 2017 StreamSets Inc.</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal"># Licensed under the Apache License, Version 2.0 (the "License");</p>
<p class="x_MsoNormal"># you may not use this file except in compliance with the License.</p>
<p class="x_MsoNormal"># You may obtain a copy of the License at</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal">#     http://www.apache.org/licenses/LICENSE-2.0</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal"># Unless required by applicable law or agreed to in writing, software</p>
<p class="x_MsoNormal"># distributed under the License is distributed on an "AS IS" BASIS,</p>
<p class="x_MsoNormal"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</p>
<p class="x_MsoNormal"># See the License for the specific language governing permissions and</p>
<p class="x_MsoNormal"># limitations under the License.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Unit]</p>
<p class="x_MsoNormal">Description=StreamSets Data Collector (SDC)</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Service]</p>
<p class="x_MsoNormal">User=sdc</p>
<p class="x_MsoNormal">Group=sdc</p>
<p class="x_MsoNormal">LimitNOFILE=32768</p>
<p class="x_MsoNormal">Environment=SDC_CONF=/etc/sdc</p>
<p class="x_MsoNormal">Environment=SDC_HOME=/opt/streamsets-datacollector</p>
<p class="x_MsoNormal">Environment=SDC_LOG=/var/log/sdc</p>
<p class="x_MsoNormal">Environment=SDC_DATA=/var/lib/sdc</p>
<p class="x_MsoNormal">ExecStart=/opt/streamsets-datacollector/bin/streamsets dc -verbose</p>
<p class="x_MsoNormal">TimeoutSec=60</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Install]</p>
<p class="x_MsoNormal">WantedBy=multi-user.target</p>
<div style="border:none; border-bottom:double windowtext 2.25pt; padding:0cm 0cm 1.0pt 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm"> </p>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">sdc.socket</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"># Copyright 2017 StreamSets Inc.</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal"># Licensed under the Apache License, Version 2.0 (the "License");</p>
<p class="x_MsoNormal"># you may not use this file except in compliance with the License.</p>
<p class="x_MsoNormal"># You may obtain a copy of the License at</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal">#     http://www.apache.org/licenses/LICENSE-2.0</p>
<p class="x_MsoNormal">#</p>
<p class="x_MsoNormal"># Unless required by applicable law or agreed to in writing, software</p>
<p class="x_MsoNormal"># distributed under the License is distributed on an "AS IS" BASIS,</p>
<p class="x_MsoNormal"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</p>
<p class="x_MsoNormal"># See the License for the specific language governing permissions and</p>
<p class="x_MsoNormal"># limitations under the License.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Unit]</p>
<p class="x_MsoNormal">After=network-online.target</p>
<p class="x_MsoNormal">Requires=network-online.target</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Socket]</p>
<p class="x_MsoNormal">ListenStream=18630</p>
<p class="x_MsoNormal">ListenStream=0.0.0.0:18630</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">[Install]</p>
<p class="x_MsoNormal">WantedBy=sockets.target</p>
<div style="border:none; border-bottom:double windowtext 2.25pt; padding:0cm 0cm 1.0pt 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm"> </p>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Krunal.</p>
<p class="x_MsoNormal"> </p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> systemd-devel <systemd-devel-bounces@lists.freedesktop.org> on behalf of Reindl Harald <h.reindl@thelounge.net><br>
<b>Sent:</b> Sunday, October 7, 2018 7:07:08 PM<br>
<b>To:</b> systemd-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: [systemd-devel] Systemd not able to spawn Exec permission denied</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
Am 07.10.18 um 10:12 schrieb Krunal Patel:<br>
> My systemdctl script not able to start service as non root user<br>
> sdc. It gives error with not able to spawn /path/to/streamsets :<br>
> Permission Denied.   /path/to/streamsets has root ownership and group<br>
> streamsets has execute permission as root user. Can you suggest if my<br>
> systemd is currupted? Other server systemd able to start service as sdc<br>
> user from root systemd. There systemd is running as switched-root , but<br>
> in server where i get error has no switched-root option in systemd<br>
> process. Is it related? Please suggest. SDC user has nologin shell<br>
<br>
please post complete systemd units to help others helping you<br>
_______________________________________________<br>
systemd-devel mailing list<br>
systemd-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div>
</span></font></div>
</body>
</html>