FreeBSD Bugzilla – Attachment 16185 Details for
Bug 29771
[PATCH] rc(8) man page has an out of date description of rc.d scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.39 KB, created by
mwm
on 2001-08-16 12:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mwm
Created:
2001-08-16 12:40:00 UTC
Size:
1.39 KB
patch
obsolete
>--- rc.8 Sat Jul 21 09:08:34 2001 >+++ /tmp/rc.8 Thu Aug 16 06:00:16 2001 >@@ -71,7 +71,7 @@ > The > .Nm rc.d > directories contain scripts which will be automatically >-executed at boot time. >+executed at boot and shutdown time. > The specified directories are processed immediately after > .Nm rc.local > is executed. >@@ -88,13 +88,20 @@ > Any other files or directories present within the directory are silently > ignored. > .It >-When a script is executed, it is passed the string >+When a script is executed at boot time, it is passed the string > .Dq start > as its first and only argument. > All > .Nm rc.d > scripts expected to handle this argument appropriately. > .It >+When a script is executed at shutdown time, it is passed the string >+.Dq stop >+as its first and only argument. >+All >+.Nm rc.d >+scripts expected to handle this argument appropriately. >+.It > The scripts within each directory are executed in lexicographical order. > If a specific order is required, > numbers may be used as a prefix to the existing filenames, >@@ -222,12 +229,17 @@ > # > # initialization/shutdown script for foobar package > >+PIDFILE=/var/run/foo.pid > case "$1" in > start) >- /usr/local/sbin/foo -d && echo -n ' foo' >+ /usr/local/sbin/foo -d -f $PIDFILE && echo -n ' foo' >+ ;; >+stop) >+ kill `cat $PIDFILE` && echo -n ' foo' > ;; > *) >- echo "unknown option: $1 - should be 'start'" >&2 >+ echo "usage: `basename $0` {start|stop}" >&2 >+ exit 1 > ;; > esac > .Ed
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29771
: 16185