Objet :
Pour les administrateurs de serveurs de listes utilisant le logiciel Sympa
Archives de la liste
- From: "Thibault Verollet" <adresse@cachée>
- To: <adresse@cachée>
- Subject: petit script pour lancer tout sympa
- Date: Fri, 20 Oct 2000 18:26:56 +0200
petit script pour lancer sympa archived et bounced d'un coup
bon WE Tibo
*******************************cut******here********************** #!/bin/bash case "$1" in start) echo "starting archived
..." su - sympa273 -c "/home/sympa273/bin/archived.pl" echo "starting
bounced ..." su - sympa273 -c "/home/sympa273/bin/bounced.pl" echo
"starting sympa ..." su - sympa273 -c "/home/sympa273/bin/sympa.pl -l
fr.cat" echo "done." ;; stop) echo "stoping archived ..." kill
-TERM `cat /home/sympa273/archived.pid` echo "stoping bounced ..." kill
-TERM `cat /home/sympa273/bounced.pid` echo "stoping sympa ..." kill -TERM
`cat /home/sympa273/sympa.pid` echo "done." ;; restart) echo
"restarting archived ..." kill -TERM `cat
/home/sympa273/archived.pid` sleep 1 su - sympa273 -c
"/home/sympa273/bin/archived.pl" echo "restarting bounced ..." kill -TERM
`cat /home/sympa273/bounced.pid` sleep 1 su - sympa273 -c
"/home/sympa273/bin/bounced.pl" echo "restarting sympa ..." kill -TERM
`cat /home/sympa273/sympa.pid` sleep 1 su - sympa273 -c
"/home/sympa273/bin/sympa.pl -l fr.cat" echo "done." ;; *) echo
"Usage : all_sympa {start|stop|restart}" exit 1 esac *******************************cut******here**********************
|
-
petit script pour lancer tout sympa,
Thibault Verollet, 20/10/2000
Archives gérées par MHonArc 2.6.19+.