~ubuntu-branches/ubuntu/precise/preload/precise

« back to all changes in this revision

Viewing changes to debian/init.d

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2009-06-29 12:48:22 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090629124822-9hdelcippq9qgj8u
Tags: 0.6.4-1
* New upstream release (Closes: #495549)
  * Improve argument handling (Closes: #508809)
* Use start-stop-daemon's --iosched option to set idle IO priority,
  don't patch preload itself to offer an option to use it.
* No more patches applied; quilt dropped as a build dep.
* Removed code from postinst that used to clean up state file from under
  /var/cache/.
* Standards-Version: 3.8.2 (no changes necessary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
case "$1" in
34
34
  start)
35
35
        echo -n "Starting $DESC: "
36
 
        if start-stop-daemon --start --quiet -u 0 --exec $DAEMON -- $DAEMON_OPTS ; then
 
36
        if start-stop-daemon --start --quiet -u 0 $PRELOAD_IOSCHED --exec $DAEMON -- $DAEMON_OPTS; then
37
37
            echo "$NAME."
38
38
        else
39
39
            echo "already running."
49
49
        ;;
50
50
  reload|force-reload)
51
51
        echo "Reloading $DESC configuration files."
52
 
        start-stop-daemon --stop --signal 1 --quiet -u 0 --exec $DAEMON
 
52
        start-stop-daemon --stop $PRELOAD_IOSCHED --signal 1 --quiet -u 0 --exec $DAEMON
53
53
        ;;
54
54
  restart)
55
55
        echo -n "Restarting $DESC: "
56
56
        start-stop-daemon --stop --oknodo --retry 1 --quiet -u 0 --exec $DAEMON
57
 
        start-stop-daemon --start --quiet -u 0 --exec $DAEMON -- $DAEMON_OPTS
 
57
        start-stop-daemon --start --quiet -u 0 $PRELOAD_IOSCHED --exec $DAEMON -- $DAEMON_OPTS
58
58
        echo "$NAME."
59
59
        ;;
60
60
  *)