summarylogtreecommitdiffstats
path: root/watchghost.install
blob: fce554dae60301d182d729e9c93569fdbbb1bc65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
    systemd-sysusers watchghost.conf
    systemctl daemon-reload
}

post_upgrade() {
    systemd-sysusers watchghost.conf
    systemctl daemon-reload
    systemctl is-active watchghost
    active=$?
    if [ $active -eq 0 ] ; then
      systemctl restart watchghost
    fi
}

pre_remove() {
    systemctl stop watchghost.service;
    systemctl disable watchghost.service;
}

post_remove() {
    systemctl daemon-reload
}