Bug 24527 - service status некорректно работает
Summary: service status некорректно работает
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: php5-fpm-fcgi (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 14:09 MSK by Nick S. Grechukh
Modified: 2010-11-10 14:28 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)