This file is indexed.

postinst is in daemontools-run 1:0.76-3ubuntu3.

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
set -e

if test -z "$2" || dpkg --compare-versions "$2" lt '1:0.76'; then
  test -n "$(ls -1 /etc/service/)" ||
    for i in /var/service /service /var/lib/svscan; do
      test -d $i || continue
      test -n "$(ls -1 $i)" || continue
      echo "Found directory $i, copying content to /etc/service/..."
      cp -a $i/* /etc/service/
      echo "Moving $i to $i{old} and creating compatibility symlink..."
      rm -rf $i'{old}'
      mv $i $i'{old}'
      ln -s /etc/service $i
      break
    done
fi

if test -f /etc/event.d/svscan
 then
   echo 'Starting svscan-service'
   /sbin/start svscan
fi