From aaca2fe9af0ca7bc90d3eb9b3c276533a48efeab Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Tue, 15 Sep 2020 13:48:54 +0100 Subject: 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). --- perl-install/services.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/services.pm') 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 ]; } -- cgit v1.2.1