summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-19 22:26:45 +0000
committerRoy Marples <roy@marples.name>2008-03-19 22:26:45 +0000
commitec2d39d024b6efcf4c20ad27f664af9289230292 (patch)
treee985413e5736fb8683745e6c342f954ac643d8ff /src
parent3b888b385aa9d34859d09b29e0738a60c97010d4 (diff)
downloadopenrc-ec2d39d024b6efcf4c20ad27f664af9289230292.tar.gz
openrc-ec2d39d024b6efcf4c20ad27f664af9289230292.tar.bz2
openrc-ec2d39d024b6efcf4c20ad27f664af9289230292.tar.xz
Just warn about the incorrect service. Let the right service be more explanitory about missing options.
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc-applets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index 8a54a5a..e67f8c1 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -366,8 +366,8 @@ static int rc_service(_unused int argc, char **argv)
{
char *service;
- if (argc < 3)
- eerrorx("%s: you need to specify a service and command(s)",
+ if (argc < 2)
+ eerrorx("%s: you need to specify a service",
applet);
if (!(service = rc_service_resolve(argv[1])))