}
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
}