~etherpad/etherpad/ubuntu-lucid-backport

« back to all changes in this revision

Viewing changes to debian/etherpad.upstart

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Etherpad"
 
2
author "Dustin Kirkland <kirkland@canonical.com>"
 
3
 
 
4
start on (local-filesystems and net-device-up IFACE!=lo)
 
5
stop on runlevel [!2345]
 
6
 
 
7
env USER="etherpad"
 
8
env GROUP="etherpad"
 
9
 
 
10
pre-start script
 
11
    mkdir /var/run/etherpad > /dev/null 2>&1  || true
 
12
    chown -R $USER:$GROUP /var/run/etherpad > /dev/null 2>&1 || true
 
13
end script
 
14
 
 
15
 
 
16
exec start-stop-daemon --start --chuid $USER:$GROUP --pidfile /var/run/etherpad/etherpad.pid \
 
17
    --exec /usr/share/etherpad/bin/run.sh > /var/log/etherpad/console.log 2>&1