Revision 23130,
687 bytes
checked in by ghudson, 16 years ago
(diff) |
Add a new package debathena-clusterinfo to cache Hesiod cluster info
for cluster machines.
|
Rev | Line | |
---|
[23130] | 1 | #!/bin/sh |
---|
| 2 | ### BEGIN INIT INFO |
---|
| 3 | # Provides: debathena-clusterinfo |
---|
| 4 | # Required-Start: $local_fs |
---|
| 5 | # Required-Stop: |
---|
| 6 | # Default-Start: S |
---|
| 7 | # Default-Stop: |
---|
| 8 | # Short-Description: Caches Athena cluster info |
---|
| 9 | # Description: Initializes the Athena cluster info cache |
---|
| 10 | ### END INIT INFO |
---|
| 11 | |
---|
| 12 | if [ -e /lib/lsb/init-functions ]; then |
---|
| 13 | . /lib/lsb/init-functions |
---|
| 14 | else |
---|
| 15 | alias log_action_begin_msg="echo -n" |
---|
| 16 | log_action_end_msg () { |
---|
| 17 | echo . |
---|
| 18 | } |
---|
| 19 | fi |
---|
| 20 | |
---|
| 21 | case "$1" in |
---|
| 22 | start) |
---|
| 23 | log_action_begin_msg "Initializing Athena cluster info cache" |
---|
| 24 | /usr/sbin/save-cluster-info |
---|
| 25 | log_action_end_msg $? |
---|
| 26 | ;; |
---|
| 27 | restart|stop|force-reload) |
---|
| 28 | ;; |
---|
| 29 | *) |
---|
| 30 | echo "Usage: $0 {start}" >&2 |
---|
| 31 | exit 3 |
---|
| 32 | ;; |
---|
| 33 | esac |
---|
| 34 | |
---|
| 35 | : |
---|
Note: See
TracBrowser
for help on using the repository browser.