tor-router/start_router.sh.php
Zachary Robert Thomas Boyd c13cf29f28 inital
2014-03-08 22:34:23 -05:00

12 lines
289 B
PHP

<?php require('./config.php'); ?>
#!/bin/bash
/etc/init.d/tor stop
/etc/init.d/polipo stop
/etc/init.d/haproxy stop
killall haproxy
killall tor
bash -c "/usr/local/bin/multi-tor.sh <?php echo INSTANCES; ?>"
bash -c "haproxy -f /etc/haproxy/haproxy.cfg -D"
sleep 5
/etc/init.d/polipo start