#!/bin/sh
exec 2>&1
sv check deluged >/dev/null || exit 1
HOME=/var/lib/deluge
exec chpst -u deluge:deluge deluge-web -d 2>&1