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

post_upgrade() {
    systemctl daemon-reload
    if systemctl is-active lapctld.service >/dev/null; then
        echo "Restarting lapctld service..."
        systemctl restart lapctld.service
    fi
}

pre_remove() {
    if systemctl is-active lapctld.service >/dev/null; then
        echo "Stopping lapctld service..."
        systemctl stop lapctld.service
    fi
}

post_remove() {
    systemctl daemon-reload
}