Systemd feature
Add systemd units and systemd detector.
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
Owner
👍 -
Status changed to merged
Toggle commit list
Add systemd units and systemd detector.
60 | 61 | else: |
61 | 62 | return sudo(('/sbin/ip', 'netns', 'exec', |
62 | 63 | NETNS) + args, stdin) |
64 | ||
65 | ||
66 | def is_there_systemd(): | |
67 | ||
68 | devnull = open(os.devnull, "w") | |
Please
register
or
sign in
to reply
|
Added 1 commit:
Added 1 commit:
Added 1 commit:
Added 1 commit:
60 | 61 | else: |
61 | 62 | return sudo(('/sbin/ip', 'netns', 'exec', |
62 | 63 | NETNS) + args, stdin) |
64 | ||
65 | ||
66 | def is_there_systemd(): | |
67 | ||
68 | with open(os.devnull, "w") as devnull: | |
69 | ||
70 | try: | |
71 | sp.call(["/bin/systemctl", "--version"], stdout=devnull, stderr=devnull) | |
|
Added 1 commit:
Added 1 commit:
mentioned in commit 41f5615a
mentioned in commit 41f5615a
Status changed to merged
Status changed to merged