This file is indexed.

prerm is in clamav-daemon 0.99+dfsg-1ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
# prerm script for #PACKAGE#
#
# see: dh_installdeb(1)

set -e

# Disable systemd socket to stop it from interfering on upgrades.
if [ -d "/run/systemd/system" ]; then
    deb-systemd-invoke stop clamav-daemon.socket || exit $?
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

# Automatically added by dh_installinit
if [ -x "/etc/init.d/clamav-daemon" ] || [ -e "/etc/init/clamav-daemon.conf" ]; then
	invoke-rc.d clamav-daemon stop || exit $?
fi
# End automatically added section


exit 0