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

Re: RFC: initscript policy proposal

In Thu, 2 Nov 2000 11:38:50 +0100 Ola Lundqvist <olalu526@student.liu.se> cum veritate scripsit :

> And the package maintainer should know about that name, and it is quite
> easy to get the pid too.
> ---
> if ps xa | grep -v grep | grep name; then
> 	stopit
> fi
> startit
> ---

The right solution will be to have a lockfile with PID in it somewhere in the 
filesystem maybe /tmp or /var/tmp or anywhere like that, and look at the file
to restart it.

That's about the only clean way things can go without interfering with 
chroot installations that I could think up of.


University: ti0113@mail4.doshisha.ac.jp    Netfort: dancer@netfort.gr.jp
dancer, a.k.a. Junichi Uekawa   http://www.netfort.gr.jp/~dancer
 Dept. of Knowledge Engineering and Computer Science, Doshisha University.
... Long Live Free Software, LIBERTAS OMNI VINCIT.

Reply to: