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 respawn | 11 respawn |
12 | 12 |
13 # Sets up the D-Bus environment. | 13 # Sets up the D-Bus environment. |
14 pre-start script | 14 pre-start script |
15 mkdir -p /var/run/dbus | 15 mkdir -p /var/run/dbus |
16 chown messagebus.messagebus /var/run/dbus | 16 chown messagebus.messagebus /var/run/dbus |
17 mkdir -p /var/lib/dbus | 17 mkdir -p /var/lib/dbus |
18 | 18 |
19 # | 19 # |
20 # The following ensures that there is a valid machine-id for dbus. Just | 20 # The following ensures that there is a valid machine-id for dbus. Just |
(...skipping 15 matching lines...) Expand all Loading... |
36 | 36 |
37 expect fork | 37 expect fork |
38 exec /usr/bin/dbus-daemon --system --fork | 38 exec /usr/bin/dbus-daemon --system --fork |
39 | 39 |
40 # The post-stop script will clean up after d-dbus. It's better to put this | 40 # 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 | 41 # here rather than in pre-start since post-stop is always guaranteed to run |
42 # while pre-start can exit pre-maturely. | 42 # while pre-start can exit pre-maturely. |
43 post-stop script | 43 post-stop script |
44 rm -rf /var/run/dbus | 44 rm -rf /var/run/dbus |
45 end script | 45 end script |
OLD | NEW |