|
Line
Link Here
|
| 0 |
-- consolekit-0.2.rc |
0 |
++ consolekit-0.3.rc |
|
Lines 1-26
Link Here
|
| 1 |
#!/sbin/runscript |
1 |
#!/sbin/runscript |
| 2 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Copyright 1999-2015 Gentoo Foundation |
| 3 |
# Distributed under the terms of the GNU General Public License, v2 or later |
3 |
# Distributed under the terms of the GNU General Public License, v2 or later |
| 4 |
# $Id$ |
4 |
# $Id$ |
| 5 |
|
5 |
|
|
|
6 |
description="consolekit - tracks login sessions and seats" |
| 7 |
pidfile="/var/run/ConsoleKit/pid" |
| 8 |
command="/usr/sbin/console-kit-daemon" |
| 9 |
|
| 6 |
depend() { |
10 |
depend() { |
| 7 |
need dbus |
11 |
need dbus |
| 8 |
use logger |
12 |
use logger |
| 9 |
} |
13 |
} |
| 10 |
|
14 |
|
| 11 |
start() { |
15 |
start_pre() { |
| 12 |
ebegin "Starting ConsoleKit daemon" |
|
|
| 13 |
|
| 14 |
checkpath -q -d -m 0755 /var/run/ConsoleKit |
16 |
checkpath -q -d -m 0755 /var/run/ConsoleKit |
| 15 |
|
|
|
| 16 |
start-stop-daemon --start -q \ |
| 17 |
--pidfile /var/run/ConsoleKit/pid \ |
| 18 |
--exec /usr/sbin/console-kit-daemon -- |
| 19 |
eend $? |
| 20 |
} |
| 21 |
|
| 22 |
stop() { |
| 23 |
ebegin "Stopping ConsoleKit daemon" |
| 24 |
start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid |
| 25 |
eend $? |
| 26 |
} |
17 |
} |