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
bdfbc9e7
authored
Jul 29, 2015
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify is_there_systemd()
parent
2df3a3d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
utils.py
+5
-5
No files found.
utils.py
View file @
bdfbc9e7
...
...
@@ -65,13 +65,13 @@ def ns_exec(args, stdin=None):
def
is_there_systemd
():
devnull
=
open
(
os
.
devnull
,
"w"
)
devnull
=
open
(
os
.
devnull
,
"w"
)
try
:
sp
.
call
([
"/bin/systemctl"
,
"--version"
],
stdout
=
devnull
,
stderr
=
devnull
)
sp
.
call
([
"/bin/systemctl"
,
"--version"
],
stdout
=
devnull
,
stderr
=
devnull
)
except
OSError
:
devnull
.
close
()
return
False
devnull
.
close
()
return
True
finally
:
devnull
.
close
()
return
True
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