Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c89adcec
authored
9 years ago
by
cloud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make shorter is_there_systemd()
parent
19544e52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
utils.py
+1
-8
No files found.
utils.py
View file @
c89adcec
...
...
@@ -65,11 +65,4 @@ def ns_exec(args, stdin=None):
def
is_there_systemd
():
with
open
(
os
.
devnull
,
"w"
)
as
devnull
:
try
:
sp
.
call
([
"/bin/systemctl"
,
"--version"
],
stdout
=
devnull
,
stderr
=
devnull
)
except
OSError
:
return
False
return
True
return
os
.
path
.
isfile
(
"/bin/systemctl"
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment