2010-08-02 12:47:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
2010-09-30 13:12:28 +00:00
|
|
|
|
2010-08-02 12:47:55 +00:00
|
|
|
if pgrep fhem.pl >/dev/null; then
|
2010-09-30 13:34:09 +00:00
|
|
|
if test -x /sbin/initctl; then
|
|
|
|
initctl stop fhem
|
|
|
|
else
|
|
|
|
invoke-rc.d fhem stop
|
|
|
|
fi
|
2010-08-02 12:47:55 +00:00
|
|
|
fi
|