services restarted from anacron have nice level of 10
Bug #19797 reported by
Rui Matos
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anacron (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned | ||
apache2 (Ubuntu) |
Won't Fix
|
Wishlist
|
Soren Hansen |
Bug Description
When logrotate runs, it restarts apache. But the nice level of the web server is
then set to 10. I guess this is not the expected behaviour because when apache
is started after a reboot its nice level is 0.
I guess changing the restart line of /etc/logrotate.
nice -n 0 /etc/init.d/apache2 restart > /dev/null
is the right thing to do.
Changed in apache2: | |
assignee: | adconrad → shawarma |
Changed in apache2: | |
status: | Confirmed → Won't Fix |
To post a comment you must log in.
There is nothing in the apache2 packaging which would be restarting the daemon dail/logrotate to run
with nice -n 10. Did you locally change your /etc/cron.
logrotate with a nice level of 10, perhaps, thus making anything logrotate
restarts also run at 10? I can't think of any other ways off the top of my head
that this could happen, though I'm sure there are some. Having every daemon
that logrotate restarts explicitly set its nice level doesn't seem like the
right answer, though.