s-s-d now handles interpreted daemons more easily.
This commit is contained in:
		@@ -22,7 +22,7 @@
 | 
			
		||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
			
		||||
.\" SUCH DAMAGE.
 | 
			
		||||
.\"
 | 
			
		||||
.Dd August 20, 2008
 | 
			
		||||
.Dd September 22, 2008
 | 
			
		||||
.Dt START-STOP-DAEMON 8 SMM
 | 
			
		||||
.Os OpenRC
 | 
			
		||||
.Sh NAME
 | 
			
		||||
@@ -74,16 +74,6 @@ The
 | 
			
		||||
we start or stop.
 | 
			
		||||
If this option is not specified, then the first non option argument
 | 
			
		||||
is used.
 | 
			
		||||
If the
 | 
			
		||||
.Ar daemon
 | 
			
		||||
is a script and you are not using the pidfile or process name options,
 | 
			
		||||
then you should replace
 | 
			
		||||
.Ar daemon
 | 
			
		||||
with the interpreter and pass
 | 
			
		||||
.Ar daemon
 | 
			
		||||
as an argument. Below is an example:
 | 
			
		||||
.Pp
 | 
			
		||||
start-stop-daemon perl -- /usr/bin/daemon.pl
 | 
			
		||||
.It Fl p , -pidfile Ar pidfile
 | 
			
		||||
When starting, we expect the daemon to create a valid
 | 
			
		||||
.Ar pidfile
 | 
			
		||||
@@ -176,6 +166,9 @@ to stop or signal.
 | 
			
		||||
.Xr getopt 3 ,
 | 
			
		||||
.Xr nice 2 ,
 | 
			
		||||
.Xr rc_find_pids 3
 | 
			
		||||
.Sh BUGS
 | 
			
		||||
.Nm
 | 
			
		||||
cannot stop an interperted daemon that no longer exists without a pidfile.
 | 
			
		||||
.Sh HISTORY
 | 
			
		||||
.Nm
 | 
			
		||||
first appeared in Debian.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user