mirror of
https://github.com/safing/portmaster-packaging.git
synced 2026-05-20 20:10:34 +00:00
11 lines
451 B
Bash
Executable File
11 lines
451 B
Bash
Executable File
# stop the portmaster service and disable it if it's enabled.
|
|
if command -V systemctl >/dev/null 2>&1; then
|
|
if (systemctl -q is-active portmaster.service); then
|
|
log "info" "Stopping portmaster.service"
|
|
systemctl stop portmaster.service ||:
|
|
fi
|
|
if (systemctl -q is-enabled portmaster.service); then
|
|
log "info" "Disabling portmaster.service to launch at boot"
|
|
systemctl disable portmaster.service ||:
|
|
fi
|
|
fi |