File: avahi-daemon.prerm

package info (click to toggle)
avahi 0.6.32-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,888 kB
  • sloc: ansic: 39,999; sh: 6,219; xml: 4,433; cs: 2,185; makefile: 1,705; python: 310; cpp: 222
file content (13 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# avoid cancelling of "stop" via socket or D-Bus activation
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
    systemctl mask --runtime avahi-daemon.service
    # stop avahi-daemon manually since invoke-rc.d currently doesn't
    # deal with masked services (see Bug #717109)
    systemctl stop avahi-daemon.service || true
fi

#DEBHELPER#