From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Mon, 7 Apr 2003 14:03:09 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 93 ************************************************** Sunday 06 April 2003 Number 93 ************************************************** Subjects for today 1 Extended Attributes and Linux : Hakan" 2 Re: killproc : John Poltorak 3 Re: killproc : Dave and Natalie" **= Email 1 ==========================** Date: Mon, 07 Apr 2003 17:31:37 -0400 (EDT) From: "Hakan" Subject: Extended Attributes and Linux It has been pointed out to me that the XFS file system for Linux, developed by SGI, supports extended attributes similarly to OS/2 and that this file system is available for free. See http://oss.sgi.com/projects/xfs/features.html for details. Has anyone tried it? Hakan **= Email 2 ==========================** Date: Mon, 7 Apr 2003 17:49:35 +0100 From: John Poltorak Subject: Re: killproc On Sun, Apr 06, 2003 at 05:22:36PM -0800, Dave and Natalie wrote: > On Sun, 6 Apr 2003 12:20:48 +0100, John Poltorak wrote: > > >> John Poltorak wrote: > >> > >> >I've just been looking at a shell script which uses 'killproc' to > >> >terminate a running process, but I can't work our what killproc actually > >> >is... > >> > > >> >Could it be a builtin function of /bin/sh ? > >> > > >> > > >> > > >> > > >> Look in /etc/init.d/functions. It's a simple routine to kill processes > >> using the 'kill' command. > > > >Thanks, for pointing that out. > > > >What I don't understand is how this routine is located... > > > >killproc is a function within the functions shell script, but it isn't on > >the path, and even if it was how would the calling program know it was a > >routine in a shell script rather than the name of an executable file? > > > > Where did you get the shell script? I hunted around for killproc here and only found it in Redhat 5.0 at /etc/rc.d/init.d/functions. > /etc/init.d contains scripts for starting, restarting and stopping daemons and it looks like that is where killproc is only used. At that from functions > # functions This file contains functions to be used by most or all > # shell scripts in the /etc/init.d directory. > > Debian has a binary /sbin/start-stop-daemon which is used for killing, restarting, etc init.d scripts. > Dave > ps Let me know if you want redhats functions script It was posted to the mailing list recently, although I have a copy on Redhat v7.3. I'm interested in getting it working on OS/2, although I still don't see how any shell script manages to locate the killproc function withing the functions shell script. -- John **= Email 3 ==========================** Date: Mon, 07 Apr 2003 20:05:06 -0800 From: "Dave and Natalie" Subject: Re: killproc On Mon, 7 Apr 2003 17:49:35 +0100, John Poltorak wrote: > >I'm interested in getting it working on OS/2, although I still don't see >how any shell script manages to locate the killproc function withing the >functions shell script. From /etc/rc.d/init.d/functions # functions This file contains functions to be used by most or all # shell scripts in the /etc/init.d directory. From most shell scripts in /etc/rc.d/init.d # Source function library. . /etc/rc.d/init.d/functions so killproc is only meant (on Redhat, could well be different on others) to be used by init.d scripts Dave