~ubuntu-branches/ubuntu/maverick/cluster-agents/maverick-proposed

« back to all changes in this revision

Viewing changes to debian/ldirectord.init

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2010-02-17 21:46:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100217214600-f24r7vdk1jev2nu1
Tags: 1:1.0.2-0ubuntu1
* New upstream release
* Thank you Martin Loschwitz:
  - Fix dependencies for ldirectord and include var/lock/subsys/ldirectord
  - Add libsocket6-perl to ldirectord's deps
* Use dh_perl instead of hard coded perl modules for cluster-agents
* debian/rules: add dpatch functions
* debian/patches/01-fix-shell-script.dpatch:
  - use bash instead of sh in ManageRAID
* debian/patches/02-fix-configure.dpatch:
  - use pod2man for ldirector man page
* Move ldirectord's ocf to cluster-agents
* Fixed typo in cluster-agents.install
* Install manpages and all resources
* Add libglib2.0-dev, pkg-config, autoconf, automake, libtool, dpatch, docbook-xsl and xsltproc to build-deps
* Add XSLTPROC_OPTIONS to debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
### BEGIN INIT INFO
 
4
# Provides:          ldirectord
 
5
# Required-Start:    $remote_fs $syslog
 
6
# Required-Stop:     $remote_fs $syslog
 
7
# Default-Start:     2 3 4 5
 
8
# Default-Stop:      0 1 6
 
9
### END INIT INFO
 
10
#
 
11
# Author: Horms <horms@verge.net.au>
 
12
#
 
13
# Debian init script for ldirectord
 
14
#
 
15
 
 
16
NAME=ldirectord
 
17
DAEMON="/usr/sbin/$NAME"
 
18
CONFIG="/etc/default/$NAME"
 
19
 
 
20
test -x $DAEMON || exit 0
 
21
 
 
22
CONFIG_FILE=""
 
23
[ -f "$CONFIG" ] && . "$CONFIG"
 
24
CONFIG_FILE="${CONFIG_FILE:=ldirectord.cf}"
 
25
 
 
26
case "$1" in
 
27
        start|stop|restart|try-restart|status|reload|force-reload)
 
28
                exec "$DAEMON" $1
 
29
                ;;
 
30
        *)
 
31
                echo "Usage: /etc/init.d/$NAME" \
 
32
                        "{start|stop|restart|try-restart|status|reload|force-reload}" >&2
 
33
        exit 1
 
34
        ;;
 
35
esac