Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2014 20:51:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191536] New: zookeeper rc.d script do not starts when running using /usr/sbin/service
Message-ID:  <bug-191536-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: hsn@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@sanatana:~ # service zookeeper onestart
env: bash: No such file or directory
root@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191536-13>