~ubuntu-branches/ubuntu/intrepid/dansguardian/intrepid-security

« back to all changes in this revision

Viewing changes to autoconf/solv.in2

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2008-04-06 14:47:06 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080406144706-2r26l1rougdmb1sd
Tags: 2.9.9.3-2
This time build with gcc 4.3 (Closes: #454889) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
# See how we were called.
3
 
 
4
 
case "$1" in
5
 
start)
6
 
        if [ -f ${BINARYLOCATION}dansguardian ] &&
7
 
           [ -f ${CONFFILELOCATION}dansguardian.conf ]; then
8
 
                ${BINARYLOCATION}dansguardian
9
 
                echo "DansGuardian started."
10
 
        fi
11
 
        ;;
12
 
stop)
13
 
        if [ -f ${PIDDIR}dansguardian.pid ]; then
14
 
                ${BINARYLOCATION}dansguardian -q
15
 
                /bin/rm -f ${PIDDIR}dansguardian.pid
16
 
                /bin/rm -f /tmp/.dguardianipc
17
 
                echo "DansGuardian stopped."
18
 
        fi
19
 
        ;;
20
 
restart)
21
 
        $0 stop
22
 
        sleep 3
23
 
        $0 start
24
 
        ;;
25
 
status)
26
 
        if [ -f ${BINARYLOCATION}dansguardian ]; then
27
 
                ${BINARYLOCATION}dansguardian -s
28
 
        fi
29
 
        ;;
30
 
*)
31
 
 
32
 
        echo "Usage: $0 {start|stop|restart}" >&2
33
 
        ;;
34
 
esac
35
 
 
36
 
 
37
 
exit 0