Skip to content

Commit 5392d72

Browse files
committed
Ubuntu/Debian and CentOS/Fedora service tweaks per forum feedback
1 parent f86d1d3 commit 5392d72

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

releases.moxie

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ r18: {
1919
- Fixed bug with adding new local users with external authentication
2020
- Fixed missing clone url on the empty repository page
2121
- Fixed incorrect tagger in the dashboard pages (issue-276)
22-
changes:
22+
- Fixed Ubuntu service script for LSB compliance
23+
- Inserted "sleep 5" in Ubuntu & Centos bash script for service restart
24+
changes:
2325
- updated Chinese translation
2426
- updated Dutch translation
2527
- updated Spanish translation
@@ -41,6 +43,8 @@ r18: {
4143
- Dongsu, KIM
4244
- Gareth Collins
4345
- Rafael Cavazin
46+
- Tamás Papp
47+
- Florian Zschocke
4448
}
4549

4650
#

src/main/distrib/linux/service-centos.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ case "$1" in
3939

4040
force-reload|restart)
4141
$0 stop
42+
sleep 5
4243
$0 start
4344
;;
4445

src/main/distrib/linux/service-ubuntu.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/bash
2-
# chkconfig: 3 21 91
3-
# Source function library.
2+
### BEGIN INIT INFO
3+
# Provides: gitblit
4+
# Required-Start: $remote_fs $syslog $network
5+
# Required-Stop: $remote_fs $syslog $network
6+
# Default-Start: 2 3 4 5
7+
# Default-Stop: 0 1 6
8+
# Short-Description: Gitblit repository server
9+
# Description: Gitblit is a stand-alone service for managing, viewing and serving Git repositories.
10+
### END INIT INFO
11+
412
. /lib/init/vars.sh
513
. /lib/lsb/init-functions
614

@@ -36,6 +44,7 @@ case "$1" in
3644

3745
force-reload|restart)
3846
$0 stop
47+
sleep 5
3948
$0 start
4049
;;
4150

0 commit comments

Comments
 (0)