<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">于 2014/1/8 1:27, Aline Manera 写道:<br>
</div>
<blockquote cite="mid:52CC38EC.5050802@linux.vnet.ibm.com"
type="cite">alinefm@alinefm-virtual-machine:~/kimchi$ sudo dpkg -i
kimchi-1.1.0-57.git2163670.noarch.deb<br>
Selecting previously unselected package kimchi.<br>
(Reading database ... 171601 files and directories currently
installed.)<br>
Unpacking kimchi (from kimchi-1.1.0-57.git2163670.noarch.deb) ...<br>
Setting up kimchi (1.1.0) ...<br>
+ service kimchid start<br>
kimchid start/running, process 8553<br>
+ grep not running<br>
+ service firewalld status<br>
<b>dpkg: error processing kimchi (--install):</b><b><br>
</b><b> subprocess installed post-installation script returned
error exit status 1</b><b><br>
</b><b>Processing triggers for ureadahead ...</b><b><br>
</b><b>Errors were encountered while processing:</b><b><br>
</b><b> kimchi</b><br>
<br>
alinefm@alinefm-virtual-machine:~/kimchi$ sudo service firewalld
status | grep "not running" >/dev/null 2>&1<br>
alinefm@alinefm-virtual-machine:~/kimchi$ echo $?<br>
1<br>
<br>
It is because firewalld service is running, so the command above
return error code.</blockquote>
hmm. if grep return error code cause installation failed, then how
can I check if firewalld service running or not ?<br>
could you help to provide a solution?<br>
<br>
<pre class="moz-signature" cols="72">--
Thanks Eli Qiao(<a class="moz-txt-link-abbreviated" href="mailto:qiaoly@cn.ibm.com">qiaoly@cn.ibm.com</a>)</pre>
</body>
</html>