Commit 8808de19 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Corrected automated tasks

parent c40bd2b7
......@@ -40,14 +40,14 @@ done
# Run slapformat
i=1
echo -n "Running slapformat..."
/opt/slapos/bin/slapformat --now --console --verbose $SLAPOS_CONFIGURATION/slapos.cfg
/opt/slapos/bin/slapformat --now --console --verbose --log_file=/opt/slapos/slapformat.log $SLAPOS_CONFIGURATION/slapos.cfg
while [[ $? != 0 ]]; do
sleep $(($i*60))
if [[ $i < 20 ]]; then
let i++
fi
echo "Retrying slapformat"
/opt/slapos/bin/slapformat --now --console --verbose $SLAPOS_CONFIGURATION/slapos.cfg
/opt/slapos/bin/slapformat --now --console --verbose --verbose --log_file=/opt/slapos/slapformat.log $SLAPOS_CONFIGURATION/slapos.cfg
done
# Run bang
......
......@@ -2,7 +2,7 @@ SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin
MAILTO=root
*/5 * * * * root /opt/slapos/bin/slapgrid-cp /etc/opt/slapos.cfg
*/15 * * * * root /opt/slapos/bin/slapgrid-sr /etc/opt/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapgrid-ur /etc/opt/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapformat /etc/opt/slapos.cfg
*/5 * * * * root /opt/slapos/bin/slapgrid-cp --verbose --log_file=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid /etc/opt/slapos/slapos.cfg
*/15 * * * * root /opt/slapos/bin/slapgrid-sr --verbose --log_file=/opt/slapos/slapgrid-sr.log --pidfile=/opt/slapos/slapgrid-sr.pid /etc/opt/slapos/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapgrid-ur --verbose --log_file=/opt/slapos/slapgrid-ur.log --pidfile=/opt/slapos/slapgrid-ur.pid /etc/opt/slapos/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapformat --verbose --log_file=/opt/slapos/slapformat.log /etc/opt/slapos/slapos.cfg
......@@ -2,7 +2,7 @@ SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin
MAILTO=root
*/5 * * * * root /opt/slapos/bin/slapgrid-cp /etc/opt/slapos.cfg
*/15 * * * * root /opt/slapos/bin/slapgrid-sr /etc/opt/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapgrid-ur /etc/opt/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapformat /etc/opt/slapos.cfg
*/5 * * * * root /opt/slapos/bin/slapgrid-cp --verbose --log_file=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid /etc/opt/slapos/slapos.cfg
*/15 * * * * root /opt/slapos/bin/slapgrid-sr --verbose --log_file=/opt/slapos/slapgrid-sr.log --pidfile=/opt/slapos/slapgrid-sr.pid /etc/opt/slapos/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapgrid-ur --verbose --log_file=/opt/slapos/slapgrid-ur.log --pidfile=/opt/slapos/slapgrid-ur.pid /etc/opt/slapos/slapos.cfg
0 0 * * * root /opt/slapos/bin/slapformat --verbose --log_file=/opt/slapos/slapformat.log /etc/opt/slapos/slapos.cfg
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