~ubuntu-branches/ubuntu/oneiric/jabberd2/oneiric-security

« back to all changes in this revision

Viewing changes to debian/component.d/10router

  • Committer: Bazaar Package Importer
  • Author(s): Nicolai Spohrer
  • Date: 2008-08-12 16:13:43 UTC
  • mfrom: (1.1.3 upstream) (0.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20080812161343-6trz3r97dtevxd17
Tags: 2.2.1-1ubuntu1
* Merge with Debian unstable (LP: #257130), remaining changes:
  - debian/control:
    + Modify Maintainer field as per spec
    + Depend on libdb4.6-dev instead of libdb4.4-dev
    + Added Conflicts and Replaces: ..., jabber for jabberd2
  - debian/rules: Added libtoolize call (jabberd2 ships with
     an older ltmain.sh version that conflicts with the
     current libtool version)
  - debian/init: create /var/run/jabber directory with correct
     permissions
* Dropped changes:
  - Debian already depends on libpq-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
 
 
3
test -f /etc/default/jabberd2 && . /etc/default/jabberd2
 
4
 
2
5
NAME=router
3
6
COMMAND=/usr/sbin/jabberd2-${NAME}
4
7
PIDFILE=/var/run/jabberd2/${NAME}.pid
5
8
CONFFILE=/etc/jabberd2/${NAME}.xml
6
 
USER=jabber
7
 
GROUP=adm
8
 
RUN=1
9
9
 
10
10
set -e
11
11
 
12
 
# exit now if we are not ment to run.
13
 
test "${RUN}" != 0 || exit 0
 
12
# exit now if we are not ment to run
 
13
test "${ROUTER_RUN}" != 0 || exit 0
14
14
 
15
15
# check for executable
16
16
test -f ${COMMAND} || exit 0