Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3308910B04 for ; Mon, 10 Mar 2014 21:18:52 +0000 (UTC) Received: (qmail 8919 invoked by uid 500); 10 Mar 2014 21:18:45 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 8877 invoked by uid 500); 10 Mar 2014 21:18:44 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 8866 invoked by uid 500); 10 Mar 2014 21:18:43 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 8860 invoked by uid 99); 10 Mar 2014 21:18:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 21:18:43 +0000 Date: Mon, 10 Mar 2014 21:18:43 +0000 (UTC) From: "Nux (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-6220) Cloudstack agent fails to start due to broken init script MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nux created CLOUDSTACK-6220: ------------------------------- Summary: Cloudstack agent fails to start due to broken init script Key: CLOUDSTACK-6220 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6220 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Install and Setup Affects Versions: 4.4.0 Environment: CentOS 6.5 KVM/libvirt Reporter: Nux Hello, On 4.4 `service cloudstack-agent start` fails with: # service cloudstack-agent start Starting Cloud Agent: touch: cannot touch `/var/lock/subsys//etc/init.d/cloudstack-agent': No such file or directory /etc/init.d/cloudstack-agent used to have this which worked fine: whatami=cloudstack-agent SHORTNAME="$whatami" Now it has been replaced with this which fails: SHORTNAME="$0" A possible solution is to replace "$0" with `basename "$0"` -- This message was sent by Atlassian JIRA (v6.2#6252)