aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linux-status.install
blob: 32b9a90736c1415c0e1bf4adca5c82b625c3041c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    systemctl --system daemon-reload
    systemctl --system enable linux-status
    systemctl --system start linux-status
}

pre_remove() {
    systemctl --system stop linux-status.service
    systemctl --system disable linux-status.service
    systemctl --system daemon-reload
}

pre_upgrade() {
    pre_remove "$1"
}

post_upgrade() {
    post_install "$1"
}