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; char *service;
if (argc < 3) if (argc < 2)
eerrorx("%s: you need to specify a service and command(s)", eerrorx("%s: you need to specify a service",
applet); applet);
if (!(service = rc_service_resolve(argv[1]))) if (!(service = rc_service_resolve(argv[1])))