LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-mask

Completely prevent unit from starting

TLDR

Mask a service (prevent it from being started)
$ systemctl mask [service_name]
copy
Mask a service and stop it if running
$ systemctl mask [service_name] --now
copy
Mask a user service
$ systemctl mask [service_name] --user
copy

SYNOPSIS

systemctl [OPTIONS...] mask UNIT...

DESCRIPTION

systemctl mask links a unit to /dev/null, completely preventing it from being started by any means. This is stronger than disable, which only prevents automatic startup. Masked units cannot be started manually, by dependencies, or by any trigger.Masking is useful for units that conflict with your setup or that you want to ensure never run. Use systemctl unmask to reverse the operation.

PARAMETERS

--now

Also stop the unit after masking
--user
Mask user service manager units instead of system units
--runtime
Mask temporarily until next reboot only

CAVEATS

Requires root privileges for system units. Masked units are impossible to start until unmasked. Use carefully; masking essential units can break system functionality. Check for dependencies before masking to avoid breaking other services.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid