Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 724610

Summary: www-servers/uwsgi-2.0.17 `rc-status --crashed` always lists uwsgi.cgit when uwsgi.cgit is running and responsive
Product: Gentoo Linux Reporter: Jason Cooper <jason+gentoobugs>
Component: Current packagesAssignee: Ultrabug <ultrabug>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cronjob script to restart crashed services
/etc/conf.d/uwsgi.cgit
emerge --info

Description Jason Cooper 2020-05-22 22:05:26 UTC
All,

I have a cron job running, searching for crashed processes, using `rc-status --crashed` and restarting them.  This works great, save one init script.  My uwsgi.cgit is always listed as crashed.  e.g.

```
# rc-status --crashed
uwsgi.cgit
# /etc/init.d/uwsgi.cgit status
 * status: crashed
# ps ax | grep uwsgi
10170 pts/1    S+     0:00 grep --color=auto uwsgi
23426 ?        S      0:06 uwsgi cgit
# cat /var/run/uwsgi_cgit/cgit.pid
23426
```

And I just hit my git server, it responded just fine.  Seems like a bug in the use of `start-stop-daemon`, maybe?
Comment 1 Jason Cooper 2020-05-22 22:08:02 UTC
Created attachment 640940 [details]
cronjob script to restart crashed services

This script includes my current work around for the bug.  It's been working reliably for a day or so.
Comment 2 Jason Cooper 2020-05-22 22:09:25 UTC
Created attachment 640942 [details]
/etc/conf.d/uwsgi.cgit
Comment 3 Jason Cooper 2020-05-22 22:11:11 UTC
Created attachment 640944 [details]
emerge --info
Comment 4 Ultrabug gentoo-dev 2020-10-07 07:52:15 UTC
hi

please test with latest stable and reopen if needed