From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D2461138010 for ; Tue, 30 Oct 2012 16:17:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A696421C013; Tue, 30 Oct 2012 16:17:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2586F21C013 for ; Tue, 30 Oct 2012 16:17:32 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FA3933D855 for ; Tue, 30 Oct 2012 16:17:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E425EE5436 for ; Tue, 30 Oct 2012 16:17:29 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1351613540.eff07c48b7a2266a4c82a202960856b4f39936d0.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: etc/ X-VCS-Repository: proj/openrc X-VCS-Files: etc/rc.conf.in X-VCS-Directories: etc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: eff07c48b7a2266a4c82a202960856b4f39936d0 X-VCS-Branch: master Date: Tue, 30 Oct 2012 16:17:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 091e9df3-44b7-4ee7-9a34-7ac1775b21cc X-Archives-Hash: 6c90f445fdf75cc3b3d4ada8c37253fd commit: eff07c48b7a2266a4c82a202960856b4f39936d0 Author: William Hubbs gmail com> AuthorDate: Tue Oct 30 16:12:20 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 30 16:12:20 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=eff07c48 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. --- 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"