Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bpm-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
bpm
bpm-sw
Commits
297885df
Commit
297885df
authored
Mar 07, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get-init-system.sh: poke systemd directories for chroot environ
parent
bab2d737
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
get-init-system.sh
scripts/get-init-system.sh
+4
-0
No files found.
scripts/get-init-system.sh
View file @
297885df
...
...
@@ -9,6 +9,10 @@ if [[ ${IS_UPSTART} =~ upstart ]]; then
echo
"upstart"
;
elif
[[
`
systemctl
`
=
~ -
\.
mount
]]
;
then
echo
"systemd"
;
# If on chroot the above alternative will not work.
# Try poking a few systemd directories instead
elif
[[
-f
/usr/lib/systemd
||
-f
/lib/systemd/systemd
]]
;
then
echo
"systemd"
;
elif
[[
-f
/etc/init.d/cron
&&
!
-h
/etc/init.d/cron
]]
;
then
echo
"sysv-init"
;
else
...
...
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