#!/bin/bash # runit only knows about the run script wrapper, so kill the daemon ourselves kill `pidof -o %PPID -x /usr/bin/mythexport-daemon` >/dev/null 2>&1