File: balboa-backend-rocksdb.prerm

package info (click to toggle)
balboa 2.0.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,284 kB
  • sloc: ansic: 10,581; makefile: 160; python: 127; sh: 60
file content (18 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

#DEBHELPER#

if [ "$1" = "remove" ]; then
    # Stop the services that we started by default
    deb-systemd-invoke stop balboa-backend@rocksdb >/dev/null || true
    # FIXME manually drop symlink, deb-systemd-helper does not support
    # template services yet.
    rm -f /etc/systemd/system/multi-user.target.wants/balboa-backend\@rocksdb.service
    # tell systemd to reload
    if [ -d /run/systemd/system ]; then
	    systemctl --system daemon-reload >/dev/null || true
    fi
fi

exit 0