Commit 1f1b5680 authored by Olav Kvittem's avatar Olav Kvittem

executabled, cron logged to file

parent 86b88562
MAILTO=oak@uninett.no
0 0 * * * root /usr/sbin/service mp-rude restart
59 23 * * * root /etc/mp-rude/stop.sh 50
0 0 * * * root /etc/mp-rude/start.sh
0 0 * * * root /usr/sbin/service mp-rude restart 2>&1 > /tmp/mp-rude/restart-`date +%u`.log
59 23 * * * root /etc/mp-rude/stop.sh 50 2>&1 > /tmp/mp-rude/stop-`date +%u`.log
0 0 * * * root /etc/mp-rude/start.sh 2>&1 > /tmp/mp-rude/start-`date +%u`.log
#!/bin/bash
cmd="$1"
for mp in bo-mp.hit.no stord-mp.hsh.no forde-mp.hisf.no harstad-mp.hih.no volda-mp.hivolda.no haugesund-mp.hsh.no tromso-mp.uit.no molde-mp.himolde.no alesund-mp.hials.no fredrikstad-mp.hiof.no svalbard-mp.unis.no porsgrunn-mp.hit.no alta-mp.hifm.no hamar-mp.hihm.no narvik-mp.hin.no pil32-mp.hioa.no ntnu-mp.ntnu.no kristiansand-mp.uia.no sogndal-mp.hisf.no stavanger-mp.uis.no bergen-mp.uib.no grimstad-mp.uia.no lillehammer-mp.hil.no oslo-mp.uio.no halden-mp.hiof.no nesna-mp.hinesna.no nyalesund-mp.uninett.no kunnskapsv-mp.hioa.no drammen-mp.hibu.no steinkjer-mp.hint.no gjovik-mp.hig.no ; do
echo henter $mp
# ssh -q root@$mp sysctl net.core.rmem_default
ssh -q root@$mp "$cmd"
done
File mode changed from 100644 to 100755
......@@ -2,7 +2,7 @@
hlist=$1
cmd="$2"
for mp in `cat mp-list.txt`; do
for mp in `cat $hlist`; do
echo $mp
eval $cmd
# start-stop-daemon --start --background --pidfile /var/run/mp-crude.pid -m --exec /usr/local/bin/crude -- -P 50 -k -l - | gzip >/tmp/mp-rude/$HOST-$DATE.crude.gz
......
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment