Re: cpuspeed (and other) service stop scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dnia 15-08-2007, Śr o godzinie 16:10 -0600, Orion Poplawski napisał(a):
> Dave Jones wrote:
> > On Wed, Aug 15, 2007 at 07:14:25AM -0700, Arjan van de Ven wrote:
> >  > 
> >  > speaking of cpuspeed... why does it have a script that runs at shutdown?
> >  > sounds like a total waste of cpu cycles and disk accesses and spuriously
> >  > making boot times longer.. since really what would it to? 
> > 
> > Sometimes it's useful to be able to 'service cpuspeed stop'.
> > AIUI, the problem is we don't have a way to discriminate between that
> > use case, and shutting down.
> 
> service cpuspeed stop basically just runs "/etc/rc.d/init.d/cpuspeed 
> stop".  That's independent from having a /etc/rc.d/rc0.d/K99cpuspeed 
> script that runs at shutdown.  However, the other thing that the stop 
> does is remove the /var/lock/subsys/cpuspeed file.  These files are 
> pretty tightly integrated to our service system and forces most services 
> to get explicitly stopped.  Might be worth examining how useful the lock 
> file is and whether *every* init script should use it.

 To save developers from reinventing the wheel... Year ago Ubuntu folks
analysed which services could be simply killed with TERM on shutdown.
Results and links are here: https://wiki.ubuntu.com/Teardown
It may be a good start.

-- 
Tomasz Torcz

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux