{{Divbox}}
{{Divbox}}
#!/bin/bash SOCK='/sbin/supervise /usr/local/socket_forwarder' case "$1" in start) echo "Starting socket forwarder" start-stop-daemon --start --exec ${SOCK} & if [[ $? -ne 0 ]] then echo "Error starting socket forwarder $?" fi ;; stop) echo "Stopping socket forwarder" start-stop-daemon --stop --exec ${SOCK} if [[ $? -ne 0 ]] then echo "Error stopping socket forwarder - $?" fi ;; esac