File: buildbot-worker.prerm

package info (click to toggle)
buildbot 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,080 kB
  • sloc: python: 174,183; sh: 1,204; makefile: 332; javascript: 119; xml: 16
file content (17 lines) | stat: -rw-r--r-- 319 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-worker@*.service || true
    else
        invoke-rc.d buildbot-worker stop || true
    fi
fi

#DEBHELPER#

exit 0