File: postrm

package info (click to toggle)
snmptrapfmt 1.14
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 176 kB
  • ctags: 87
  • sloc: ansic: 1,330; sh: 63; makefile: 39
file content (14 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

# remove pid and pipe file only when being removed
case "$1" in
  "remove"| "purge"| "abort-install")
    # make sure pipe and pid file are removed
    rm -f /var/run/snmptrapfmt.p /var/run/snmptrapfmt.pid
    ;;
  *)
    ;;
esac

#DEBHELPER#