From 5392d72bd34dcc63861d0084ebe2529523d4bb5f Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Mon, 22 Jul 2013 08:44:01 -0400
Subject: [PATCH] Ubuntu/Debian and CentOS/Fedora service tweaks per forum feedback
---
src/main/distrib/linux/service-centos.sh | 1 +
src/main/distrib/linux/service-ubuntu.sh | 13 +++++++++++--
releases.moxie | 6 +++++-
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/releases.moxie b/releases.moxie
index 9d42e6b..0e98441 100644
--- a/releases.moxie
+++ b/releases.moxie
@@ -19,7 +19,9 @@
- Fixed bug with adding new local users with external authentication
- Fixed missing clone url on the empty repository page
- Fixed incorrect tagger in the dashboard pages (issue-276)
- changes:
+ - Fixed Ubuntu service script for LSB compliance
+ - Inserted "sleep 5" in Ubuntu & Centos bash script for service restart
+ changes:
- updated Chinese translation
- updated Dutch translation
- updated Spanish translation
@@ -41,6 +43,8 @@
- Dongsu, KIM
- Gareth Collins
- Rafael Cavazin
+ - Tamás Papp
+ - Florian Zschocke
}
#
diff --git a/src/main/distrib/linux/service-centos.sh b/src/main/distrib/linux/service-centos.sh
index 04c9a9b..5276104 100644
--- a/src/main/distrib/linux/service-centos.sh
+++ b/src/main/distrib/linux/service-centos.sh
@@ -39,6 +39,7 @@
force-reload|restart)
$0 stop
+ sleep 5
$0 start
;;
diff --git a/src/main/distrib/linux/service-ubuntu.sh b/src/main/distrib/linux/service-ubuntu.sh
index 4ff275d..f21ec2a 100644
--- a/src/main/distrib/linux/service-ubuntu.sh
+++ b/src/main/distrib/linux/service-ubuntu.sh
@@ -1,6 +1,14 @@
#!/bin/bash
-# chkconfig: 3 21 91
-# Source function library.
+### BEGIN INIT INFO
+# Provides: gitblit
+# Required-Start: $remote_fs $syslog $network
+# Required-Stop: $remote_fs $syslog $network
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Gitblit repository server
+# Description: Gitblit is a stand-alone service for managing, viewing and serving Git repositories.
+### END INIT INFO
+
. /lib/init/vars.sh
. /lib/lsb/init-functions
@@ -36,6 +44,7 @@
force-reload|restart)
$0 stop
+ sleep 5
$0 start
;;
--
Gitblit v1.9.1