s-s-d now handles interpreted daemons more easily.
This commit is contained in:
parent
2c62d095c8
commit
5610c8560c
@ -22,7 +22,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd August 20, 2008
|
.Dd September 22, 2008
|
||||||
.Dt START-STOP-DAEMON 8 SMM
|
.Dt START-STOP-DAEMON 8 SMM
|
||||||
.Os OpenRC
|
.Os OpenRC
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -74,16 +74,6 @@ The
|
|||||||
we start or stop.
|
we start or stop.
|
||||||
If this option is not specified, then the first non option argument
|
If this option is not specified, then the first non option argument
|
||||||
is used.
|
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
|
.It Fl p , -pidfile Ar pidfile
|
||||||
When starting, we expect the daemon to create a valid
|
When starting, we expect the daemon to create a valid
|
||||||
.Ar pidfile
|
.Ar pidfile
|
||||||
@ -176,6 +166,9 @@ to stop or signal.
|
|||||||
.Xr getopt 3 ,
|
.Xr getopt 3 ,
|
||||||
.Xr nice 2 ,
|
.Xr nice 2 ,
|
||||||
.Xr rc_find_pids 3
|
.Xr rc_find_pids 3
|
||||||
|
.Sh BUGS
|
||||||
|
.Nm
|
||||||
|
cannot stop an interperted daemon that no longer exists without a pidfile.
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
.Nm
|
.Nm
|
||||||
first appeared in Debian.
|
first appeared in Debian.
|
||||||
|
Loading…
Reference in New Issue
Block a user