43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
|
diff -up sblim-gather-2.2.9/provider/provider-register.sh.orig sblim-gather-2.2.9/provider/provider-register.sh
|
||
|
--- sblim-gather-2.2.9/provider/provider-register.sh.orig 2015-03-03 12:46:57.671267255 +0100
|
||
|
+++ sblim-gather-2.2.9/provider/provider-register.sh 2015-03-03 12:48:00.501535717 +0100
|
||
|
@@ -351,20 +351,8 @@ sfcb_rebuild()
|
||
|
if ps -C sfcbd > /dev/null 2>&1
|
||
|
then
|
||
|
# sfcb is running -- need to restart
|
||
|
- for INITSCRIPT in /etc/init.d/sfcb /usr/local/etc/init.d/sfcb none
|
||
|
- do
|
||
|
- if test -x $INITSCRIPT
|
||
|
- then
|
||
|
- break;
|
||
|
- fi
|
||
|
- done
|
||
|
chatter "Shutting down sfcb."
|
||
|
- if test $INITSCRIPT = none
|
||
|
- then
|
||
|
- killall sfcbd
|
||
|
- else
|
||
|
- $INITSCRIPT stop
|
||
|
- fi
|
||
|
+ systemctl stop sblim-sfcb
|
||
|
t=0
|
||
|
while ps -C sfcbd > /dev/null 2>&1
|
||
|
do
|
||
|
@@ -385,14 +373,8 @@ sfcb_rebuild()
|
||
|
return 1
|
||
|
fi
|
||
|
|
||
|
- if test $INITSCRIPT = none
|
||
|
- then
|
||
|
- echo "No init script found - you need to start sfcbd manually." >&2
|
||
|
- return 1
|
||
|
- else
|
||
|
- chatter "Restarting sfcb."
|
||
|
- $INITSCRIPT start
|
||
|
- fi
|
||
|
+ chatter "Restarting sfcb."
|
||
|
+ systemctl start sblim-sfcb
|
||
|
else
|
||
|
# Not running - rebuild repository
|
||
|
chatter "Rebuilding repository."
|