diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-30 11:12:20 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2012-10-30 11:19:53 -0500 |
commit | 2964fc47f1da9b038b5ae4870c5fa9a78c5d2065 (patch) | |
tree | 9a4715c827142fe863c2b88c4b6ce9ed63f716d5 | |
parent | 0396f0ea7c7119847ef7fc8440c1e1543bdf09e2 (diff) | |
download | openrc-2964fc47f1da9b038b5ae4870c5fa9a78c5d2065.tar.gz openrc-2964fc47f1da9b038b5ae4870c5fa9a78c5d2065.tar.bz2 openrc-2964fc47f1da9b038b5ae4870c5fa9a78c5d2065.tar.xz |
Expand the documentation for service configuration variables
The original documentation for these variables did not give an example
of what to do if the service had a name that had illegal characters in
it, so this commit adds an example. There was no bug report; this was
suggested by Tobias Klausmann.
-rw-r--r-- | etc/rc.conf.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.conf.in b/etc/rc.conf.in index 2dad333..e49a410 100644 --- a/etc/rc.conf.in +++ b/etc/rc.conf.in @@ -94,6 +94,10 @@ # These variables are documented here, but should be configured in # /etc/conf.d/foo for service foo and NOT enabled here unless you # really want them to work on a global basis. +# If your service has characters in its name which are not legal in +# shell variable names and you configure the variables for it in this +# file, those characters should be replaced with underscores in the +# variable names as shown below. # Some daemons are started and stopped via start-stop-daemon. # We can set some things on a per service basis, like the nicelevel. @@ -116,6 +120,13 @@ #rc_foo_need="openvpn" #rc_foo_after="clock" +# Below is an example for service foo-bar. Note that the '-' is illegal +# in a shell variable name, so we convert it to an underscore. +# example for service foo-bar. +#rc_foo_bar_config="/etc/foo-bar" +#rc_foo_bar_need="openvpn" +#rc_foo_bar_after="clock" + # You can also remove dependencies. # This is mainly used for saying which servies do NOT provide net. #rc_net_tap0_provide="!net" |