cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject git commit: usage: Fix init scripts for RHEL based distros to use --pidfile instead of -p
Date Sun, 07 Oct 2012 08:13:39 GMT
Updated Branches:
  refs/heads/master a97d2d4f3 -> 2459a5a7a


usage: Fix init scripts for RHEL based distros to use --pidfile instead of -p


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/2459a5a7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/2459a5a7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/2459a5a7

Branch: refs/heads/master
Commit: 2459a5a7a9d34b0fe915cab4bfd9f4fdcf5ea33e
Parents: a97d2d4
Author: Marcus Sorensen <shadowsor@gmail.com>
Authored: Sun Oct 7 10:11:30 2012 +0200
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Sun Oct 7 10:11:30 2012 +0200

----------------------------------------------------------------------
 .../centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in   |    2 +-
 .../fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in   |    2 +-
 .../rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2459a5a7/usage/distro/centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in
----------------------------------------------------------------------
diff --git a/usage/distro/centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in b/usage/distro/centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in
index 516a842..cb5beb5 100755
--- a/usage/distro/centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in
+++ b/usage/distro/centos/SYSCONFDIR/rc.d/init.d/cloud-usage.in
@@ -79,7 +79,7 @@ start() {
 
     echo -n "Starting $PROGNAME" "$SHORTNAME"
 
-    if daemon -p $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" -errfile
SYSLOG -Dpid=$$ $CLASS
+    if daemon --pidfile $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER"
-errfile SYSLOG -Dpid=$$ $CLASS
         RETVAL=$?
     then
         rc=0

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2459a5a7/usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in
----------------------------------------------------------------------
diff --git a/usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in b/usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in
index 516a842..cb5beb5 100755
--- a/usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in
+++ b/usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in
@@ -79,7 +79,7 @@ start() {
 
     echo -n "Starting $PROGNAME" "$SHORTNAME"
 
-    if daemon -p $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" -errfile
SYSLOG -Dpid=$$ $CLASS
+    if daemon --pidfile $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER"
-errfile SYSLOG -Dpid=$$ $CLASS
         RETVAL=$?
     then
         rc=0

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2459a5a7/usage/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in
----------------------------------------------------------------------
diff --git a/usage/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in b/usage/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in
index 516a842..cb5beb5 100644
--- a/usage/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in
+++ b/usage/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-usage.in
@@ -79,7 +79,7 @@ start() {
 
     echo -n "Starting $PROGNAME" "$SHORTNAME"
 
-    if daemon -p $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER" -errfile
SYSLOG -Dpid=$$ $CLASS
+    if daemon --pidfile $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER"
-errfile SYSLOG -Dpid=$$ $CLASS
         RETVAL=$?
     then
         rc=0


Mime
View raw message