Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Rings:0-Bootstrap
aaa_base
git-18-3d9d3a8adf6b34ef1a3a4bfa23325e5cc3b2bc06...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-18-3d9d3a8adf6b34ef1a3a4bfa23325e5cc3b2bc06.patch of Package aaa_base
commit 3d9d3a8adf6b34ef1a3a4bfa23325e5cc3b2bc06 Author: Ruediger Oertel <ro@suse.de> Date: Fri Apr 8 15:56:00 2016 +0200 chckconfig: add --no-systemctl option diff --git a/files/usr/bin/chkconfig b/files/usr/bin/chkconfig index 1c99cbe..d0a2b1b 100755 --- a/files/usr/bin/chkconfig +++ b/files/usr/bin/chkconfig @@ -152,6 +152,7 @@ sub initlinks_rc { my $force; my $allservices; +my $nosystemctl = 0; # # run insserv @@ -477,8 +478,11 @@ sub is_systemd_active { sub is_overriden_by_systemd { my $service = shift; my $root = shift; - for my $path (@systemd_paths) { - return $path if -e "$root/$path/$service.service"; + + if (!$nosystemctl) { + for my $path (@systemd_paths) { + return $path if -e "$root/$path/$service.service"; + } } return undef; } @@ -562,8 +566,8 @@ if (!GetOptions('list|l' => \&addmode, 'force|f' => \$force, 'allservices|A' => \$allservices, 'deps' => \$printdeps, - 'root=s' => \$root - + 'root=s' => \$root, + 'no_systemctl' => \$nosystemctl, )) { usage(); exit 1; @@ -796,6 +800,7 @@ if ($mode eq 'a' || $mode eq 'd') { $mode = 'l'; initlinks_rc(); } + if ($mode eq 'l' || $mode eq 'L') { my $usecolor = -t STDOUT; if (is_systemd_active() && @services) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor