于 2014/1/8 1:27, Aline Manera 写道:
alinefm@alinefm-virtual-machine:~/kimchi$ sudo dpkg -i kimchi-1.1.0-57.git2163670.noarch.deb
Selecting previously unselected package kimchi.
(Reading database ... 171601 files and directories currently installed.)
Unpacking kimchi (from kimchi-1.1.0-57.git2163670.noarch.deb) ...
Setting up kimchi (1.1.0) ...
+ service kimchid start
kimchid start/running, process 8553
+ grep not running
+ service firewalld status
dpkg: error processing kimchi (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead ...
Errors were encountered while processing:
 kimchi

alinefm@alinefm-virtual-machine:~/kimchi$ sudo service firewalld status | grep "not running" >/dev/null 2>&1
alinefm@alinefm-virtual-machine:~/kimchi$ echo $?
1

It is because firewalld service is running, so the command above return error code.
hmm. if grep return error code cause installation failed, then how can I check if firewalld service running or not ?
could you help to provide a solution?

-- 
Thanks Eli Qiao(qiaoly@cn.ibm.com)