summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-07-22 08:44:01 -0400
committerJames Moger <james.moger@gitblit.com>2013-07-22 08:44:01 -0400
commit5392d72bd34dcc63861d0084ebe2529523d4bb5f (patch)
treeff0f7289aededd5da0d63484bd7751bf0925c002 /src
parentf86d1d3aa612bbc47b03a47f440b2d2b46ab573c (diff)
downloadgitblit-5392d72bd34dcc63861d0084ebe2529523d4bb5f.tar.gz
gitblit-5392d72bd34dcc63861d0084ebe2529523d4bb5f.zip
Ubuntu/Debian and CentOS/Fedora service tweaks per forum feedback
Diffstat (limited to 'src')
-rw-r--r--src/main/distrib/linux/service-centos.sh1
-rw-r--r--src/main/distrib/linux/service-ubuntu.sh13
2 files changed, 12 insertions, 2 deletions
diff --git a/src/main/distrib/linux/service-centos.sh b/src/main/distrib/linux/service-centos.sh
index 04c9a9b4..5276104d 100644
--- a/src/main/distrib/linux/service-centos.sh
+++ b/src/main/distrib/linux/service-centos.sh
@@ -39,6 +39,7 @@ case "$1" in
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 4ff275d0..f21ec2a1 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 @@ case "$1" in
force-reload|restart)
$0 stop
+ sleep 5
$0 start
;;