~ubuntu-branches/ubuntu/utopic/maradns/utopic

« back to all changes in this revision

Viewing changes to build/mara.startup

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2006-06-21 22:08:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060621220854-51ev9apuhyiia6f3
Tags: 1.2.10-1
* New upstream release
* Added --oknodo to stop case
* Stopping maradns: invoke-rc.d: initscript maradns, action "stop"
  failed. (Closes: #374655)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
# Copyright 2005 Sam Trenholme
 
3
# Copyright 2005-2006 Sam Trenholme
4
4
 
5
5
# TERMS
6
6
 
79
79
    ps -e | awk '{print $1":"$NF}' | grep maradns | grep -v $$ | \
80
80
      cut -f1 -d: | xargs kill -9 > /dev/null 2>&1
81
81
    echo MaraDNS should have been stopped
 
82
    if [ $1 = "stop" ] ; then
 
83
        exit 0
 
84
    fi
82
85
fi
83
86
 
84
87
# If invoked as start or restart, start the MaraDNS processes
89
92
        # Duende syslogs MaraDNS' output messages and daemonizes MaraDNS
90
93
        $DUENDE $MARADNS -f $a
91
94
    done
 
95
    exit 0
92
96
fi
93
97