Добавлена обработка подпроцессов.
[weathermon.git] / init.d / weathermon
index b57d620cd633a2b8436c698685d583a7db90473e..8553b6ac39c7919111a4a32ac1c4f101d9cd3757 100755 (executable)
@@ -48,12 +48,5 @@ start_service() {
 }
 
 stop_service() {
 }
 
 stop_service() {
-       killall weathermon
-       killall weathermon-iio
-       if [ ! -z "$BACKLOGDB" ] && [ -f "$BACKLOGDB" ]; then
-               cp "$BACKLOGDB" "$BACKUP_DIR"/
-       fi
-       if [ ! -z "$LOGDB" ] && [ -f "$BACKLOGDB" ]; then
-               cp "$LOGDB" "$BACKUP_DIR"/
-       fi
+       /usr/bin/weather-backup
 }
 }