[ https://issues.apache.org/jira/browse/NIFI-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15587044#comment-15587044 ]
ASF GitHub Bot commented on NIFI-1710: -------------------------------------- Github user alopresto commented on the issue: https://github.com/apache/nifi/pull/1137 Built with `contrib-check`, all tests pass (Mac OS X 10.11.6, GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin15.0.0), Java 1.8.0_101). Created a symlink to `bin/nifi.sh` in another directory and was able to execute the script. +1, merging. ``` hw12203:/Users/alopresto/Workspace (master) alopresto 🔓 27s @ 16:32:11 $ cd scratch/ hw12203:/Users/alopresto/Workspace/scratch (master) alopresto 🔓 14s @ 16:32:30 $ ln -s /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT/bin/nifi.sh nifi hw12203:/Users/alopresto/Workspace/scratch (master) alopresto 🔓 10s @ 16:33:43 $ ls -l nifi lrwxr-xr-x 1 alopresto staff 108 Oct 18 16:32 nifi -> /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT/bin/nifi.sh hw12203:/Users/alopresto/Workspace/scratch (master) alopresto 🔓 4s @ 16:33:52 $ ./nifi status Java home: /Users/alopresto/.jenv/versions/1.8 NiFi home: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT Bootstrap Config File: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT/conf/bootstrap.conf 2016-10-18 16:33:58,029 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi is currently running, listening to Bootstrap on port 58166, PID=78128 hw12203:/Users/alopresto/Workspace/scratch (master) alopresto 🔓 9s @ 16:34:01 $ ./nifi stop Java home: /Users/alopresto/.jenv/versions/1.8 NiFi home: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT Bootstrap Config File: /Users/alopresto/Workspace/nifi/nifi-assembly/target/nifi-1.1.0-SNAPSHOT-bin/nifi-1.1.0-SNAPSHOT/conf/bootstrap.conf 2016-10-18 16:35:43,851 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now 2016-10-18 16:35:43,883 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... 2016-10-18 16:35:45,893 INFO [main] org.apache.nifi.bootstrap.Command NiFi has finished shutting down. hw12203:/Users/alopresto/Workspace/scratch (master) alopresto 🔓 107s @ 16:35:49 $ ``` > Resolve path name to nifi.sh in start script > -------------------------------------------- > > Key: NIFI-1710 > URL: https://issues.apache.org/jira/browse/NIFI-1710 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Joey Frazee > Priority: Trivial > > Currently if you symlink to nifi.sh the start script will not work because $0 > doesn't evaluate to the physical location and the script assumes > bootstrap.conf is relative to the script. > This means you can't, for example, symlink nifi.sh to /etc/init.d and use the > respective service commands to control NiFi. > Adding realpath or readlink to the script should fix this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)