Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Mon, 25 Feb 2013 20:50:54
Message-Id: 1361825139.fb10b971722ca630314ac7bccb9480f277a56d31.WilliamH@OpenRC
1 commit: fb10b971722ca630314ac7bccb9480f277a56d31
2 Author: Andrew Gregory <andrew.gregory.8 <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 24 17:06:43 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 20:45:39 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=fb10b971
7
8 rc-service: add usage message
9
10 Signed-off-by: Andrew Gregory <andrew.gregory.8 <AT> gmail.com>
11
12 ---
13 src/rc/rc-service.c | 5 +++++
14 1 files changed, 5 insertions(+), 0 deletions(-)
15
16 diff --git a/src/rc/rc-service.c b/src/rc/rc-service.c
17 index 2fbdd75..d35b36b 100644
18 --- a/src/rc/rc-service.c
19 +++ b/src/rc/rc-service.c
20 @@ -42,6 +42,11 @@
21 extern char *applet;
22
23 #include "_usage.h"
24 +#define usagestring "" \
25 + "Usage: rc-service [options] [-i] <service> <cmd>...\n" \
26 + " or: rc-service [options] -e <service>\n" \
27 + " or: rc-service [options] -l\n" \
28 + " or: rc-service [options] -r <service>"
29 #define getoptstring "e:ilr:" getoptstring_COMMON
30 static const struct option longopts[] = {
31 { "exists", 1, NULL, 'e' },