Subject: CVS commit: basesrc/etc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 03/21/2002 14:21:00
Module Name: basesrc
Committed By: lukem
Date: Thu Mar 21 12:21:00 UTC 2002
Modified Files:
basesrc/etc: rc.subr
Log Message:
- Add run_rc_command() control variable $command_interpreter
If set, the first line of $command is read, the leading #! is
removed, whitespace is normalised, the first word is checked
against $command_interpreter, and the result is used as the
string to match in the ps(1) output.
This code isn't infallable, but works for common cases such as
#!/bin/sh
#! /usr/pkg/bin/perl -w
This helps solve the problem described in [bin/15563], and by
Ed Ravin on tech-userlevel.
- Move the common elements of check_process() and check_pidfile() into
_find_processes(), and call appropriately.
To generate a diff of this commit:
cvs rdiff -r1.44 -r1.45 basesrc/etc/rc.subr
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.