More efficient way to make sure all instances are started again after reboot

parent d008f5fd
...@@ -75,6 +75,9 @@ if [ $ONLY_SLAPFORMAT = false ]; then ...@@ -75,6 +75,9 @@ if [ $ONLY_SLAPFORMAT = false ]; then
done done
echo "done." echo "done."
# Run slapgrid on all computer partitions # Delete timestamp of all partitions so that it will force slapgrid to process them.
/opt/slapos/bin/slapgrid-cp --verbose --develop --now --logfile=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid $SLAPOS_CONFIGURATION/slapos.cfg >> /opt/slapos/slapgrid-cp.log 2>&1 rm /srv/slapgrid/slappart*/.timestamp
# Run slapgrid now.
/opt/slapos/bin/slapgrid-cp --verbose --now --logfile=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid $SLAPOS_CONFIGURATION/slapos.cfg >> /opt/slapos/slapgrid-cp.log 2>&1
fi fi
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