[
https://issues.apache.org/jira/browse/NIFI-1709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035517#comment-16035517
]
ASF subversion and git services commented on NIFI-1709:
-------------------------------------------------------
Commit 4d78052dd4f19372161391e93cde688f2fa8b864 in nifi's branch
refs/heads/master from [~trixpan]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=4d78052 ]
NIFI-1709 - Introduce logic to probe Linux version using /etc/os-release to
nifi.sh
Add explicit paths to support SLES 11 SP4 / OpenSUSE init.d layout
This closes #1794
> The nifi.sh install script assumes RHEL directories
> ---------------------------------------------------
>
> Key: NIFI-1709
> URL: https://issues.apache.org/jira/browse/NIFI-1709
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Tools and Build
> Environment: SUSE
> Reporter: David A. Wynne
> Assignee: Andre F de Miranda
> Priority: Minor
>
> When setting up NiFi, the command:
> bin/nifi.sh install
> The following error occurs:
> ln: failed to create symbolic link `/etc/rc2.d/S65nifi': No such file or
> directory
> ln: failed to create symbolic link `/etc/rc2.d/K65nifi': No such file or
> directory
> Service nifi installed
> Looking in the nifi.sh, around line 145 - 148, you see:
> rm -f "/etc/rc2.d/S65${SVC_NAME}"
> ln -s "/etc/init.d/${SVC_NAME}" "/etc/rc2.d/S65${SVC_NAME}"
> rm -f "/etc/rc2.d/K65${SVC_NAME}"
> ln -s "/etc/init.d/${SVC_NAME}" "/etc/rc2.d/K65${SVC_NAME}"
> It tries to symlink from /etc/init.d/nifi to /etc/rc2.d/S65nifi (and
> K65nifi).
> The problem is that the script assumes that /etc/rc2.d exists in a SUSE
> system, which it doesn't.
> In Suse11, this directory is /etc/init.d/rc2.d/
> The script, especially the "install" option should correctly identify the OS
> flavor it runs on, and install the files in the correct location.
> The next version of RHEL (8, not out yet), and Ubuntu 16.02 LTS (releasing
> next month), will use systemD, which does not have the concept of /etc/rc2.d
> directories, but works with "targets". The script will not be compatible with
> these OS changes.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)