#!/bin/sh
set -e
mkdir -p /var/lib/deluge
chown deluge:deluge /var/lib/deluge
exec chpst -u deluge:deluge deluged -d 2>&1