Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
0912aa84
Commit
0912aa84
authored
Sep 03, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix systemd detection
parent
700440a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
epm-sh-functions
bin/epm-sh-functions
+3
-5
No files found.
bin/epm-sh-functions
View file @
0912aa84
...
...
@@ -559,11 +559,9 @@ is_active_systemd()
[
-x
"
$SYSTEMCTL
"
]
||
return
[
-d
"
$SYSTEMD_CGROUP_DIR
"
]
||
return
#a='' mountpoint -q "$SYSTEMD_CGROUP_DIR" || return
cat
/proc/1/cmdline |
grep
-q
'systemd'
||
return
#readlink /sbin/init | grep -q 'systemd' || return
# some hack
# shellcheck disable=SC2009
#ps ax | grep '[s]ystemd' | grep -q -v 'systemd-udev'
cat
/proc/1/cmdline |
grep
-q
'systemd'
&&
return
cat
/proc/1/cmdline |
grep
-q
'/sbin/init'
||
return
readlink
/sbin/init |
grep
-q
'systemd'
||
return
}
assure_distr
()
...
...
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