Группа :: Науки/Прочее
Пакет: 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