118 |
+ my $wanted = `grep -P '^WantedBy=.*sme-server.target' /usr/lib/systemd/system/$service* /etc/systemd/system/$service* -rsh` ; |
+ my $wanted = `grep -P '^WantedBy=.*sme-server.target' /usr/lib/systemd/system/$service* /etc/systemd/system/$service* -rsh` ; |
119 |
+ chomp $wanted; |
+ chomp $wanted; |
120 |
+ push(@WantedBy , $service) unless ( $wanted eq "") ; |
+ push(@WantedBy , $service) unless ( $wanted eq "") ; |
121 |
+ print "want $service \n" unless ( $wanted eq "") ; |
+ #print "want $service \n" unless ( $wanted eq "") ; |
122 |
+ } |
+ } |
123 |
+ |
+ |
124 |
+ } |
+ } |