Some servers now have insufficient memory to handle multiple instances
of mlton, but this isn't as big of a deal now with improved
single-threaded performance.
# deploy domtool to all machines
# deploy domtool to all machines
-# todo: outpost (needs kerberos auth)
-HOSTS_SLAVE="deleuze navajos bog hopper mccarthy outpost"
+HOSTS_SLAVE="outpost marsh minsky shelob lovelace"
for master in $HOSTS_SERVER;
do
for master in $HOSTS_SERVER;
do
export -f build_slave
echo $HOSTS_SLAVE | parallel -j 10 -d ' ' build_slave {}
export -f build_slave
echo $HOSTS_SLAVE | parallel -j 10 -d ' ' build_slave {}
-
-#for slave in $HOSTS_SLAVE;
-#do
-# echo "##### Building SLAVE on $slave"
-# ssh -K $slave ~clinton_admin/deploy-domtool-on-host.sh --slave
-#done
\ No newline at end of file
-cd /afs/hcoop.net/common/domtool/build/$(hostname)/domtool2
+cd /afs/hcoop.net/common/domtool/build/$(hostname -s)/domtool2
git checkout release # just in case
git pull
git checkout release # just in case
git pull
if [ x"$2" = "x--bootstrap" ]; then
sudo make install
case $1 in
if [ x"$2" = "x--bootstrap" ]; then
sudo make install
case $1 in
- --server)
- sudo insserv domtool-server
+ --server)
+ sudo make install_systemd_dispatcher
+ sudo systemctl enable domtool-server
- sudo insserv domtool-slave
+ sudo make install_systemd_worker
+ sudo systemctl enable domtool-slave
if [ "$1" = "--slave" ]; then
echo "Installing Slave"
sudo make install_slave
if [ "$1" = "--slave" ]; then
echo "Installing Slave"
sudo make install_slave
-fi
\ No newline at end of file