diff options
author | Michael Biebl <biebl@debian.org> | 2010-07-17 12:02:44 +0000 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2010-07-17 12:02:44 +0000 |
commit | ceeff121805dcf435c6eafcb4bef16477fac5b6f (patch) | |
tree | f89dd8975a7f1ce90ab008d97301ffc3cab58e8b /debian/dbus.init | |
parent | 39fcbb792e47680fba5fdf016689ba76cf06ee89 (diff) | |
download | dbus-ceeff121805dcf435c6eafcb4bef16477fac5b6f.tar.gz |
* debian/dbus.init
- Simplify check in start_it_up() by using the existing status action.
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/unstable/dbus@3652 ceb527fc-18e6-0310-9fe2-813c157c29e7
Diffstat (limited to 'debian/dbus.init')
-rw-r--r-- | debian/dbus.init | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/dbus.init b/debian/dbus.init index 6564c103..e8abdf50 100644 --- a/debian/dbus.init +++ b/debian/dbus.init @@ -99,8 +99,7 @@ start_it_up() fi if [ -e $PIDFILE ]; then - PIDDIR=/proc/$(cat $PIDFILE) - if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then + if $0 status > /dev/null ; then log_success_msg "$DESC already started; not starting." return else |