Just warn about the incorrect service. Let the right service be more explanitory about missing options.

This commit is contained in:
Roy Marples 2008-03-19 22:26:45 +00:00
parent 3b888b385a
commit ec2d39d024

View File

@ -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])))