Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:openrc-0.11.x commit in: etc/
Date: Tue, 30 Oct 2012 16:20:20
Message-Id: 1351613993.2964fc47f1da9b038b5ae4870c5fa9a78c5d2065.WilliamH@OpenRC
1 commit: 2964fc47f1da9b038b5ae4870c5fa9a78c5d2065
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 30 16:12:20 2012 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 16:19:53 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=2964fc47
7
8 Expand the documentation for service configuration variables
9
10 The original documentation for these variables did not give an example
11 of what to do if the service had a name that had illegal characters in
12 it, so this commit adds an example. There was no bug report; this was
13 suggested by Tobias Klausmann.
14
15 ---
16 etc/rc.conf.in | 11 +++++++++++
17 1 files changed, 11 insertions(+), 0 deletions(-)
18
19 diff --git a/etc/rc.conf.in b/etc/rc.conf.in
20 index 2dad333..e49a410 100644
21 --- a/etc/rc.conf.in
22 +++ b/etc/rc.conf.in
23 @@ -94,6 +94,10 @@
24 # These variables are documented here, but should be configured in
25 # /etc/conf.d/foo for service foo and NOT enabled here unless you
26 # really want them to work on a global basis.
27 +# If your service has characters in its name which are not legal in
28 +# shell variable names and you configure the variables for it in this
29 +# file, those characters should be replaced with underscores in the
30 +# variable names as shown below.
31
32 # Some daemons are started and stopped via start-stop-daemon.
33 # We can set some things on a per service basis, like the nicelevel.
34 @@ -116,6 +120,13 @@
35 #rc_foo_need="openvpn"
36 #rc_foo_after="clock"
37
38 +# Below is an example for service foo-bar. Note that the '-' is illegal
39 +# in a shell variable name, so we convert it to an underscore.
40 +# example for service foo-bar.
41 +#rc_foo_bar_config="/etc/foo-bar"
42 +#rc_foo_bar_need="openvpn"
43 +#rc_foo_bar_after="clock"
44 +
45 # You can also remove dependencies.
46 # This is mainly used for saying which servies do NOT provide net.
47 #rc_net_tap0_provide="!net"