File: postrm

package info (click to toggle)
snmptrapfmt 1.20
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: ansic: 1,322; sh: 64; makefile: 26
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#