OLD | NEW |
---|---|
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # dbus | 5 # dbus |
6 # | 6 # |
7 # Does some required setup and then starts the D-Bus daemon. | 7 # Does some required setup and then starts the D-Bus daemon. |
8 # | 8 # |
9 | 9 |
10 start on runlevel 2 | 10 start on starting boot-services |
11 stop on stopping boot-services | |
diandersAtChromium
2011/04/20 16:36:44
NOTE: I'm not convinced this is right. It certain
| |
11 respawn | 12 respawn |
12 | 13 |
13 # Sets up the D-Bus environment. | 14 # Sets up the D-Bus environment. |
14 pre-start script | 15 pre-start script |
15 mkdir -p /var/run/dbus | 16 mkdir -p /var/run/dbus |
16 chown messagebus.messagebus /var/run/dbus | 17 chown messagebus.messagebus /var/run/dbus |
17 mkdir -p /var/lib/dbus | 18 mkdir -p /var/lib/dbus |
18 | 19 |
19 # | 20 # |
20 # The following ensures that there is a valid machine-id for dbus. Just | 21 # The following ensures that there is a valid machine-id for dbus. Just |
(...skipping 15 matching lines...) Expand all Loading... | |
36 | 37 |
37 expect fork | 38 expect fork |
38 exec /usr/bin/dbus-daemon --system --fork | 39 exec /usr/bin/dbus-daemon --system --fork |
39 | 40 |
40 # The post-stop script will clean up after d-dbus. It's better to put this | 41 # The post-stop script will clean up after d-dbus. It's better to put this |
41 # here rather than in pre-start since post-stop is always guaranteed to run | 42 # here rather than in pre-start since post-stop is always guaranteed to run |
42 # while pre-start can exit pre-maturely. | 43 # while pre-start can exit pre-maturely. |
43 post-stop script | 44 post-stop script |
44 rm -rf /var/run/dbus | 45 rm -rf /var/run/dbus |
45 end script | 46 end script |
OLD | NEW |