On 12/06/11 18:19, Roman Rakus wrote:
We can use `install -o qpidd -g qpidd -d
@localstatedir@/{run,lib}/matahari'
RR
Thanks, that is much better. I'll send an updated patch.
- ZB
On 06/10/2011 05:43 PM, Zane Bitter wrote:
> The pid and data directories must exist and be writable by the user qpidd
> before starting matahari-brokerd. Since these directories may be cleared on
> reboot we shouldn't rely on them already existing, and we can't rely on the
> broker to create them as qpidd does not have sufficient permissions. So
> ensure they are created in the init script.
>
> Signed-off-by: Zane Bitter<zbitter(a)redhat.com>
> ---
> matahari-broker.init.in | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/matahari-broker.init.in b/matahari-broker.init.in
> index de98002..340e5a2 100755
> --- a/matahari-broker.init.in
> +++ b/matahari-broker.init.in
> @@ -51,8 +51,17 @@ fi
>
> RETVAL=0
>
> +create_directory() {
> + if [ ! -d $1 ]; then
> + mkdir -p $1
> + chown qpidd:qpidd $1
> + fi
> +}
> +
> start() {
> echo -n $"Starting Matahari broker daemon: "
> + create_directory @localstatedir@/run/matahari
> + create_directory @localstatedir@/lib/matahari
> daemon --pidfile $pidfile --check $prog --user qpidd /usr/sbin/$prog --daemon
--pid-dir @localstatedir@/run/matahari --data-dir @localstatedir@/lib/matahari
$QPIDD_OPTIONS
> RETVAL=$?
> echo
>
> _______________________________________________
> Matahari mailing list
> Matahari(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/matahari
_______________________________________________
Matahari mailing list
Matahari(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/matahari