aboutsummaryrefslogtreecommitdiff
path: root/debian/tests/start-service
blob: 7227cb28802b5aa61bab236651d8d465a101c7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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/sbin/console-kit-daemon &
/usr/lib/accountsservice/accounts-daemon &

make -C tests integrationcheck