File: buildbot.prerm

package info (click to toggle)
buildbot 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,452 kB
  • sloc: python: 123,237; sh: 1,005; makefile: 303
file content (17 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
# ex: et sw=4 ts=4 sts=4

set -e

if [ "$1" = remove ] || [ "$1" = purge ]; then
    # stop all master instances
    if [ -d /run/systemd/system ]; then
        deb-systemd-invoke stop buildbot@*.service || true
    else
        invoke-rc.d buildbot stop || true
    fi
fi

#DEBHELPER#

exit 0