~ubuntu-branches/ubuntu/dapper/clamav/dapper-backports

« back to all changes in this revision

Viewing changes to debian/clamav-daemon.init.in

  • Committer: Bazaar Package Importer
  • Author(s): Imre Gergely
  • Date: 2009-09-03 18:59:26 UTC
  • mfrom: (9.4.10 jaunty-proposed)
  • Revision ID: james.westby@ubuntu.com-20090903185926-92kh3x3gqja2vlya
Tags: 0.95.2+dfsg-4ubuntu1.1~dapper1
* Source backport for clamav (LP: 423793)
  - Drop deny rule in freshclam apparmor profile since deny is not
    supported in Dapper's apparmor
  - Drop dh_lintian from debian/rules and adjust version of debhelper
    build-dep
  - Drop build-dep and libclamav-dev depends on non-existent libtommath-dev
  - Changed Section to 'utils' for clamav-dbg package
  - Drop versioning of lsb-base depends
  - Build with GCC 3.4 to work around known bugs in 4.1
  - Drop po template file comments to work around bugs in the Dapper build
    system   
  - Switch back to older dpkg-dev Source-Version style
  - Restore build-dep on dpkg-dev
* Updated clamd apparmor profile
  - debian/usr.sbin.clamd: added support for havp (LP: #423669)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
[ -x "$DAEMON" ] || exit 0
31
31
[ -r /etc/default/clamav-daemon ] && . /etc/default/clamav-daemon
 
32
 
 
33
#COMMON-FUNCTIONS#
 
34
 
32
35
. /lib/lsb/init-functions
33
36
 
34
37
if [ ! -f "$CLAMAVCONF" ]; then
39
42
  exit 1;
40
43
fi
41
44
 
42
 
#COMMON-FUNCTIONS#
43
 
 
44
45
slurp_config "$CLAMAVCONF"
45
46
 
46
47
if [ -n "$Example" ]; then
90
91
  OPTIND=1
91
92
  if [ -z "$RUN_SUPERVISED" ] ; then
92
93
    log_daemon_msg "Starting $DESC" "$NAME "
93
 
    su "$User" -p -s /bin/sh -c ". /lib/lsb/init-functions && start_daemon -p $THEPIDFILE $DAEMON"
 
94
    start-stop-daemon --start -o -c $User --exec $DAEMON
94
95
    ret=$?
95
96
  else 
96
97
    log_daemon_msg "Starting $DESC" "$NAME (supervised) "
137
138
  fi
138
139
  ;;
139
140
  status)
140
 
  case "$RUNNING" in
141
 
    0) log_success_msg "$NAME is running."
142
 
    ;;
143
 
    1) log_warning_msg "$NAME is not running, but pidfile $THEPIDIFILE exists."
144
 
    ;;
145
 
    3) log_failure_msg "$NAME is not running."
146
 
    ;;
147
 
    *) log_failure_msg "$NAME is unknown."
148
 
    ;;
149
 
  esac
 
141
  status_of_proc "$DAEMON" "$NAME"
 
142
  exit $?
150
143
  ;;
151
144
  restart|force-reload)
152
145
  $0 stop