Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/articles/rc-scripting/_index.adoc
Context not available. | |||||
:sectnumlevels: 6 | :sectnumlevels: 6 | ||||
:source-highlighter: rouge | :source-highlighter: rouge | ||||
:experimental: | :experimental: | ||||
:images-path: articles/rc-scripting/ | |||||
ifeval::["{backend}" == "html5"] | |||||
include::shared/en/urls.adoc[] | ifdef::env-beastie[] | ||||
ifdef::backend-html5[] | |||||
include::shared/authors.adoc[] | |||||
include::shared/mirrors.adoc[] | |||||
include::shared/releases.adoc[] | |||||
include::shared/attributes/attributes-{{% lang %}}.adoc[] | |||||
include::shared/{{% lang %}}/teams.adoc[] | |||||
include::shared/{{% lang %}}/mailing-lists.adoc[] | |||||
include::shared/{{% lang %}}/urls.adoc[] | |||||
:imagesdir: ../../../images/{images-path} | |||||
endif::[] | |||||
ifdef::backend-pdf,backend-epub3[] | |||||
include::../../../../shared/asciidoctor.adoc[] | |||||
endif::[] | endif::[] | ||||
ifeval::["{backend}" == "pdf"] | |||||
include::../../../../shared/en/urls.adoc[] | |||||
endif::[] | endif::[] | ||||
ifeval::["{backend}" == "epub3"] | ifndef::env-beastie[] | ||||
include::../../../../shared/en/urls.adoc[] | include::../../../../../shared/asciidoctor.adoc[] | ||||
endif::[] | endif::[] | ||||
[.abstract-title] | [.abstract-title] | ||||
Context not available. | |||||
The crucial step is to install the script in [.filename]#/etc/rc.d# (for the base system) or [.filename]#/usr/local/etc/rc.d# (for ports). | The crucial step is to install the script in [.filename]#/etc/rc.d# (for the base system) or [.filename]#/usr/local/etc/rc.d# (for ports). | ||||
Both [.filename]#bsd.prog.mk# and [.filename]#bsd.port.mk# provide convenient hooks for that, and usually you do not have to worry about the proper ownership and mode. | Both [.filename]#bsd.prog.mk# and [.filename]#bsd.port.mk# provide convenient hooks for that, and usually you do not have to worry about the proper ownership and mode. | ||||
System scripts should be installed from [.filename]#src/etc/rc.d# through the [.filename]#Makefile# found there. | System scripts should be installed from [.filename]#src/etc/rc.d# through the [.filename]#Makefile# found there. | ||||
Port scripts can be installed using `USE_RC_SUBR` as described link:{porters-handbook}#rc-scripts[in the Porter's Handbook]. | Port scripts can be installed using `USE_RC_SUBR` as described extref:{porters-handbook}[in the Porter's Handbook, rc-scripts]. | ||||
However, we should consider beforehand the place of our script in the system startup sequence. | However, we should consider beforehand the place of our script in the system startup sequence. | ||||
The service handled by our script is likely to depend on other services. | The service handled by our script is likely to depend on other services. | ||||
Context not available. |