Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37759763
en ru br
Репозитории ALT
S:7.8.4-alt4.1
5.1: 6.10.58-alt0.M51.1
www.altlinux.org/Changes

Группа :: Науки/Прочее
Пакет: boinc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: alt-service-actions.patch
Скачать


 client/scripts/boinc-client.in |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/client/scripts/boinc-client.in b/client/scripts/boinc-client.in
index 920dbfc..05e1930 100755
--- a/client/scripts/boinc-client.in
+++ b/client/scripts/boinc-client.in
@@ -489,9 +489,28 @@ case "$1" in
           fi
         fi
         ;;
+        
+  # ALTLinux specific functions.
+  condstop)
+        if [ -e "$LOCKFILE" ]; then
+            $0 stop
+        fi
+        ;;
+
+  condrestart)
+        if [ -e "$LOCKFILE" ]; then
+            $0 restart
+        fi
+        ;;
+
+  condreload)
+        if [ -e "$LOCKFILE" ]; then
+            $0 reload
+        fi
+        ;;
 
   *)
-        echo "Usage: boinc {start|stop|restart|reload|status}"
+        echo "Usage: boinc {start|stop|restart|reload|condstop|condrestart|condreload|status}"
         exit 1
 esac
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin