blob: 824ccb28cb6411e7d7d9d11121e9de67a1fd4404 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
/usr/bin/chpst -u mythtv /usr/bin/mythexport-daemon
PID=`pidof -o %PPID -x /usr/bin/mythexport-daemon`
# Wait until daemon dies, else runit can't supervise us
while [ "`pidof -o %PPID -x /usr/bin/mythexport-daemon`" == "$PID" ]; do
sleep 2
done
|