summarylogtreecommitdiffstats
path: root/once.install
blob: b3403ce60b033ab90817e1b89829651320753ad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
    echo ':: Enable the background service with: systemctl enable --now once-background.service'
}

post_upgrade() {
    if systemctl is-active --quiet once-background.service; then
        systemctl restart once-background.service
    fi
}

pre_remove() {
    if systemctl is-active --quiet once-background.service; then
        systemctl disable --now once-background.service
    fi
}