diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-09-15 13:48:54 +0100 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-09-15 13:48:54 +0100 |
commit | aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab (patch) | |
tree | 861c574e2ad0f4adc74d4bdb3c24515d37982556 /perl-install/services.pm | |
parent | a6c0b23905965b787b46a4cf13b42b600d5b67e7 (diff) | |
download | drakx-aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab.tar drakx-aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab.tar.gz drakx-aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab.tar.bz2 drakx-aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab.tar.xz drakx-aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab.zip |
Show disabled systemd sockets and timers in GUI.
Several systemd units that the user may wish to enable or disable (e.g.
fstrim.timer, saned.socket) are not wanted by the multi-user or graphical
targets. So also show units that are wanted by the sockets or timers
targets (better too much than too little).
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r-- | perl-install/services.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm index d7448c0ae..a0b2df027 100644 --- a/perl-install/services.pm +++ b/perl-install/services.pm @@ -405,7 +405,7 @@ sub _systemd_services() { # also handled by systemd if (!exists $loaded{$unit_name} && $name !~ /.*\@$/g && (-e "$::prefix/lib/systemd/system/$unit_name" or -e "$::prefix/etc/rc.d/init.d/$name") && ! -l "$::prefix/lib/systemd/system/$unit_name") { # Limit ourselves to "standard" targets which can be enabled - my $wantedby = cat_("$::prefix/lib/systemd/system/$unit_name") =~ /^WantedBy=(graphical|multi-user).target$/sm ? $1 : ''; + my $wantedby = cat_("$::prefix/lib/systemd/system/$unit_name") =~ /^WantedBy=(graphical|multi-user|sockets|timers).target$/sm ? $1 : ''; if ($wantedby) { push @services, [ _list_name($name, $type), 0 ]; } |