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
bab2d737
Commit
bab2d737
authored
Mar 07, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/get-init-system.sh: throw away error from upstart checking
parent
08914f82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
get-init-system.sh
scripts/get-init-system.sh
+3
-1
No files found.
scripts/get-init-system.sh
View file @
bab2d737
...
...
@@ -3,7 +3,9 @@
# Based from the stackexchange answer
# http://unix.stackexchange.com/questions/18209/detect-init-system-using-the-shell
if
[[
`
/sbin/init
--version
`
=
~ upstart
]]
;
then
IS_UPSTART
=
$(
/sbin/init
--version
2> /dev/null
)
if
[[
${
IS_UPSTART
}
=
~ upstart
]]
;
then
echo
"upstart"
;
elif
[[
`
systemctl
`
=
~ -
\.
mount
]]
;
then
echo
"systemd"
;
...
...
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