Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 20947 invoked from network); 12 Oct 2010 04:36:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 04:36:14 -0000 Received: (qmail 65429 invoked by uid 500); 12 Oct 2010 04:36:14 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65068 invoked by uid 500); 12 Oct 2010 04:36:11 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65051 invoked by uid 99); 12 Oct 2010 04:36:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 04:36:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 04:36:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9C4Zh0g014805 for ; Tue, 12 Oct 2010 04:35:44 GMT Message-ID: <13608666.53801286858143843.JavaMail.jira@thor> Date: Tue, 12 Oct 2010 00:35:43 -0400 (EDT) From: =?UTF-8?Q?Marc_Sch=C3=B6chlin_=28JIRA=29?= To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2453) start/control-script is not suitable for professional environments In-Reply-To: <331517760.1255538632708.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2453?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D62= 506#action_62506 ]=20 Marc Sch=C3=B6chlin commented on AMQ-2453: ------------------------------------- Sorry, i don't own a aix system :-) Probably its enough to modify the sheebang like this:=20 ---- $ svn diff Index: activemq =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- activemq (Revision 1021620) +++ activemq (Arbeitskopie) @@ -1,4 +1,4 @@ -#!/bin/bash=20 +#!/usr/bin/env bash=20 # ------------------------------------------------------------------------ # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with ---- Bash emulation of /bin/sh is often not completely compatible to the "sh" of= legacy unix systems - but most of these systems provide the bash shell. Can you sent me the following info= rmation: - stdout/stderr output of a script feature which is not working using "/bin= /sh activemq" - stdout/stderr output of a script feature which is not working with "/bin/= sh -x activemq" > start/control-script is not suitable for professional environments > ------------------------------------------------------------------ > > Key: AMQ-2453 > URL: https://issues.apache.org/activemq/browse/AMQ-2453 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.0 > Reporter: Marc Sch=C3=B6chlin > Assignee: Dejan Bosanac > Fix For: 5.4.0 > > Attachments: activemq, usage-example.txt > > > The start-scripts "activemq" and "activemq-admin" do not seem to be ready= for production use. > Reasons: > - Server does not run in background > =3D> this can be done by redirecting output to a file and run in backgr= ound > =3D> in my opinion this should be implemented directly in java > =3D> the console log should be written by log4j to /data/= console.log > - The process should be started on a non-root user=20 > =3D> use 'su -c "$COMMAND" - $RUN_AS_USER'=20 > =3D> this should be defined in /etc/activemq.conf > - The script should support a "reload" feature to reload the configurarti= on > (if activemq supports reloading) > - The script should support a "status" option > =3D> this should show a quick overview about the state of activemq > =3D> this should return a value !=3D 0 if the service is not working > (this is important for cluster integration) > Does anybody already working on these items? > Do you have suggestions for a implementation? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.