[Bug 191536] New: zookeeper rc.d script do not starts when running using /usr/sbin/service
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jul 1 20:51:29 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191536
Bug ID: 191536
Summary: zookeeper rc.d script do not starts when running using
/usr/sbin/service
Product: Ports Tree
Version: Latest
Hardware: i386
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: hsn at sendmail.cz
OS - FreeBSD 10-STABLE/ i386
there is bug in rc.d start script, it requires /usr/local/bin in path which is
not set when using `/sbin/service` helper
root at sanatana:~ # service zookeeper onestart
env: bash: No such file or directory
root at sanatana:~ # whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
it is caused that service script sets path not including local:
root at sanatana:~ # sh -x /usr/sbin/service zookeeper onestart
[---cut---]
+ [ -x /etc/rc.d/zookeeper ]
+ [ -x /usr/local/etc/rc.d/zookeeper ]
+ [ -n '' ]
+ exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin
/usr/local/etc/rc.d/zookeeper onestart
env: bash: No such file or directory
Problem 2:
%%ZOOKEEPER_LOGDIR%% and %%ZOKEEPER_RUNDIR%% are not replaced in rc.d script
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list