Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724610 - www-servers/uwsgi-2.0.17 `rc-status --crashed` always lists uwsgi.cgit when uwsgi.cgit is running and responsive
Summary: www-servers/uwsgi-2.0.17 `rc-status --crashed` always lists uwsgi.cgit when u...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-22 22:05 UTC by Jason Cooper
Modified: 2020-10-07 07:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cronjob script to restart crashed services (rc-recovery.sh,413 bytes, application/x-sh)
2020-05-22 22:08 UTC, Jason Cooper
Details
/etc/conf.d/uwsgi.cgit (uwsgi.cgit,313 bytes, text/plain)
2020-05-22 22:09 UTC, Jason Cooper
Details
emerge --info (emerge.info.txt,5.38 KB, text/plain)
2020-05-22 22:11 UTC, Jason Cooper
Details

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