Bug 24527

Summary: service status некорректно работает
Product: Sisyphus Reporter: Nick S. Grechukh <gns>
Component: php5-fpm-fcgiAssignee: Anton Farygin <rider>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: ldv, rider
Version: unstable   
Hardware: all   
OS: Linux   

Description Nick S. Grechukh 2010-11-10 14:09:06 MSK
[root@eeelive ~]# /etc/init.d/php5-fpm start
Starting php5-fpm service:                                                                                                                                                [ DONE ]
[root@eeelive ~]# /etc/init.d/php5-fpm status
php5-fpm is dead, but stale PID file exists
[root@eeelive ~]# ps -ef | grep fpm
root     20205     1  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
_php_fpm 20206 20205  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
_php_fpm 20207 20205  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
_php_fpm 20208 20205  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
_php_fpm 20209 20205  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
_php_fpm 20210 20205  0 13:08 ?        00:00:00 /usr/sbin/php5-fpm 
root     20219 20023  0 13:08 pts/7    00:00:00 grep fpm 
[root@eeelive ~]# /etc/init.d/php5-fpm stop
Stopping php5-fpm service:                                                                                                                                                [ DONE ]
[root@eeelive ~]# ps -ef | grep fpm
root     20241 20023  0 13:08 pts/7    00:00:00 grep fpm
Comment 1 Nick S. Grechukh 2010-11-10 14:10:43 MSK
А всё почему? Потому что 

status --pidfile "$PIDFILE" --expect-user $USERID -- $PROG

, а в пидфайле родительский процесс, а он под рутом висит а не $USERID.
Comment 2 Anton Farygin 2010-11-10 14:15:22 MSK
Спасибо, исправлю в след. сборке.
Comment 3 Repository Robot 2010-11-10 14:28:47 MSK
php5-fpm-fcgi-5.3.3.20100722-alt3.1 -> sisyphus:

* Wed Nov 10 2010 Anton Farygin <rider@altlinux> 5.3.3.20100722-alt3.1
- fixed status check in initscript (closes: #24527)