From 5392d72bd34dcc63861d0084ebe2529523d4bb5f Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 22 Jul 2013 08:44:01 -0400 Subject: [PATCH] Ubuntu/Debian and CentOS/Fedora service tweaks per forum feedback --- releases.moxie | 6 +++++- src/main/distrib/linux/service-centos.sh | 1 + src/main/distrib/linux/service-ubuntu.sh | 13 +++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/releases.moxie b/releases.moxie index 9d42e6b5..0e984414 100644 --- a/releases.moxie +++ b/releases.moxie @@ -19,7 +19,9 @@ r18: { - 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 @@ r18: { - 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 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 ;; -- 2.39.5