[systemd-devel] Systemd not able to spawn Exec permission denied
Krunal Patel
krpatel19 at outlook.com
Mon Oct 8 05:54:44 UTC 2018
Hi,
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.
Thanks,
Krunal.
________________________________
From: systemd-devel <systemd-devel-bounces at lists.freedesktop.org> on behalf of Krunal Patel <krpatel19 at outlook.com>
Sent: Monday, October 8, 2018 10:47:07 AM
To: Reindl Harald; systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] Systemd not able to spawn Exec permission denied
Hi,
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.
System unit are as below:
sdc.service
# Copyright 2017 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[Unit]
Description=StreamSets Data Collector (SDC)
[Service]
User=sdc
Group=sdc
LimitNOFILE=32768
Environment=SDC_CONF=/etc/sdc
Environment=SDC_HOME=/opt/streamsets-datacollector
Environment=SDC_LOG=/var/log/sdc
Environment=SDC_DATA=/var/lib/sdc
ExecStart=/opt/streamsets-datacollector/bin/streamsets dc -verbose
TimeoutSec=60
[Install]
WantedBy=multi-user.target
sdc.socket
# Copyright 2017 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[Unit]
After=network-online.target
Requires=network-online.target
[Socket]
ListenStream=18630
ListenStream=0.0.0.0:18630
[Install]
WantedBy=sockets.target
Thanks,
Krunal.
________________________________
From: systemd-devel <systemd-devel-bounces at lists.freedesktop.org> on behalf of Reindl Harald <h.reindl at thelounge.net>
Sent: Sunday, October 7, 2018 7:07:08 PM
To: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] Systemd not able to spawn Exec permission denied
Am 07.10.18 um 10:12 schrieb Krunal Patel:
> My systemdctl script not able to start service as non root user
> sdc. It gives error with not able to spawn /path/to/streamsets :
> Permission Denied. /path/to/streamsets has root ownership and group
> streamsets has execute permission as root user. Can you suggest if my
> systemd is currupted? Other server systemd able to start service as sdc
> user from root systemd. There systemd is running as switched-root , but
> in server where i get error has no switched-root option in systemd
> process. Is it related? Please suggest. SDC user has nologin shell
please post complete systemd units to help others helping you
_______________________________________________
systemd-devel mailing list
systemd-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181008/e54e8917/attachment-0001.html>
More information about the systemd-devel
mailing list