queue-repair

6 febbraio 2020 by Roberto Puzzanghera 0 commenti

Un toolkit per la gestione della coda di qmail; può creare una nuova coda, spostare e rinominare opportunamente una coda, cambiare dinamicamente il valore conf-split, convertire grandi code big-todo in code non-big-todo e  viceversa, e riparare una coda danneggiata.

Nel caso ti capitasse di danneggiare la coda, ringrazierai certamente questo programmino!

Scaricare, patchare e installare. La patch applicata (grazie a Tony Fung) rende il programma eseguibile anche con python3.

wget http://pyropus.ca/software/queue-repair/queue-repair-0.9.0.tar.gz
tar xzf queue-repair-0.9.0.tar.gz
cd queue-repair-0.9.0
chown -R root.root .
wget https://notes.sagredo.eu/files/qmail/patches/queue_repair.patch
patch < queue_repair.patch
cp queue_repair.py /usr/local/bin

Utilizzo

Non dimenticare di stoppare qmail prima dell'utilizzo.

# qmailctl stop
# queue-repair --help

queue_repair.py v. 0.9.0
Copyright (C) 2001 Charles Cazabon 
Licensed under the GNU General Public License version 2


Usage:  queue_repair.py [options] [conf-qmail]

Options:
  conf-qmail                    (default:  /var/qmail)
  -t   or --test                Test only; do not modify the filesystem
  -r   or --repair              Repair errors found        (default: test)
  -b   or --bigtodo             Force use of big-todo      (default: auto)
  -n   or --no-bigtodo          Force non-use of big-todo  (default: auto)
  -s N or --split N             Force conf-split of N      (default: auto)
  -c   or --create              Force creation of queue    (default: no)
  --i-want-a-broken-conf-split  Force non-prime conf-split (default: no)
  -h   or --help                This text

 

Aggiungi un commento