Revision 25019,
589 bytes
checked in by jdreed, 14 years ago
(diff) |
In reactivate:
* policy-rc.d should only return the cups daemons that exist (Trac
#701). Fix plagiarized from debathena-cupsys-config's restart_cups.sh
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | if [ "--daemons" = "$1" ]; then |
---|
4 | [ -e /etc/init.d/cups ] && rcname=cups || rcname=cupsys |
---|
5 | echo $rcname |
---|
6 | exit |
---|
7 | fi |
---|
8 | |
---|
9 | case "$2" in |
---|
10 | \(*\)) |
---|
11 | exit 101 |
---|
12 | ;; |
---|
13 | esac |
---|
14 | |
---|
15 | # If nobody's logged in, follow the default policy |
---|
16 | if ! [ -e /var/run/athena-login ]; then |
---|
17 | exit 0 |
---|
18 | elif [ -e /ClusterLogin ]; then |
---|
19 | case "$1" in |
---|
20 | cups|cupsys) |
---|
21 | exit 0 |
---|
22 | ;; |
---|
23 | *) |
---|
24 | exit 101 |
---|
25 | ;; |
---|
26 | esac |
---|
27 | else |
---|
28 | case "$1" in |
---|
29 | cups|cupsys) |
---|
30 | exit 101 |
---|
31 | ;; |
---|
32 | *) |
---|
33 | exit 0 |
---|
34 | ;; |
---|
35 | esac |
---|
36 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.