Just warn about the incorrect service. Let the right service be more explanitory about missing options.
This commit is contained in:
parent
3b888b385a
commit
ec2d39d024
@ -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])))
|
||||
|
Loading…
Reference in New Issue
Block a user