aboutsummaryrefslogtreecommitdiff
path: root/debian/tests/start-service
blob: 3b81bbcc103b7ac3501cbdb1d2904b5fb9623c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -x
set -e

if [ ! -d /var/run/dbus ]; then
	mkdir /var/run/dbus
fi

dbus-daemon --fork --print-address=4 --config-file /etc/dbus-1/system.conf --print-pid=5 4>/tmp/system-bus-addr 5>/tmp/system-bus-pid
dbus-daemon --fork --session --print-address=4 --config-file 4>/tmp/session-bus-addr

DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/system-bus-addr`
DBUS_SESSION_BUS_ADDRESS=`cat /tmp/session-bus-addr`

/usr/lib/policykit-1/polkitd 2>&1 &
/usr/sbin/console-kit-daemon &
/usr/lib/accountsservice/accounts-daemon &

make -C tests integrationcheck