[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: renice a process after boot
> I tried the following in rc.local:
>
> sleep 5
> /usr/bin/renice -10 `cat /var/named/named.pid`
>
> but upon reboot it says there is no pid file.
> Is there any incantation of cron that will go off only after
> all the processes have started on reboot, giving named
> time to create the pid file? What other options do I have?
while [ ! -f /var/named/named.pid ]; do
sleep 10
done
/usr/bin/renice -10 `cat /var/named/named.pid`
You might want to run that out of cron, using '@reboot' for the time.
Good luck,
-f
http://www.blackant.net/