Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #276040

Re: Systemctl masked/disabled/etc

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Systemctl masked/disabled/etc
Date 2024-12-27 17:20 +0100
Message-ID <JYle9-3eZY-5@gated-at.bofh.it> (permalink)
References <JWnN8-1vRC-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 22 Dec 2024 at 01:16:31 (-0500), Alex Wahl wrote:
> Is there any point to worrying about what's masked and disabled
> if I don't have a specific technical reason? The reason I asked
> it really just because I'm wondering if I accidentally set a unit
> to that in the past I shouldn't have; I don't really know what
> a "normal" system looks like 

Typically, a vanilla system will have very few files in /etc/systemd/
that aren't just symlinks to files in /lib/systemd or /usr/lib/systemd.

  $ ls -AlFR /etc/systemd/ | grep 'null'

will search for things that are masked, and the timestamp will tell
you when the change was made. (Some could date back to installation.)

  $ ls -AlFR /etc/systemd/ | grep '^\-'

will search for ordinary files that you might have written yourself
to override systemd's default behaviour. However, there are some
systemd-owned .conf files (typically listed first) that show the
default values for parameters, that is if you haven't modified them.
Again, the timestamps may jog your memory.

  $ systemctl list-unit-files --state=disabled

Because disabling services removes files, you may need this command
to give you an overview of disabled services etc. But there could be
many that normally show as such, so you'll need to check with:

  $ systemctl status whatever.service/timer/socket/whichever

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Systemctl masked/disabled/etc "Alex Wahl" <awahl1138@fastmail.com> - 2024-12-22 07:40 +0100
  Re: Systemctl masked/disabled/etc john doe <johndoe65534@mail.com> - 2024-12-22 11:20 +0100
  Re: Systemctl masked/disabled/etc Greg Wooledge <greg@wooledge.org> - 2024-12-22 14:40 +0100
    Re: Systemctl masked/disabled/etc Max Nikulin <manikulin@gmail.com> - 2024-12-23 04:00 +0100
  Re: Systemctl masked/disabled/etc Oliver Schode <oliver.schode@online.de> - 2024-12-24 13:50 +0100
    Re: Systemctl masked/disabled/etc pocket@homemail.com - 2024-12-24 14:10 +0100
  Re: Systemctl masked/disabled/etc David Wright <deblis@lionunicorn.co.uk> - 2024-12-27 17:20 +0100
    Re: Systemctl masked/disabled/etc eben@gmx.us - 2024-12-27 17:30 +0100
      Re: Systemctl masked/disabled/etc David Wright <deblis@lionunicorn.co.uk> - 2024-12-27 18:30 +0100
        Re: Systemctl masked/disabled/etc eben@gmx.us - 2024-12-27 19:20 +0100

csiph-web