diff options
author | Roy Marples <roy@marples.name> | 2008-03-21 09:10:59 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-21 09:10:59 +0000 |
commit | 494fb0a5f6df3c8da636f4db057fbb3994c1ad6c (patch) | |
tree | 445f85ba02a818b9bc1aac6e66ddd0ccff423a40 /src/rc/rc-applets.c | |
parent | e505e6ea4131224d4f11e87d8b086c9e35b448a2 (diff) |
Add --list to rc-service to list all available services.
Diffstat (limited to 'src/rc/rc-applets.c')
-rw-r--r-- | src/rc/rc-applets.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index e67f8c1a..539ef39a 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -362,23 +362,6 @@ static int do_shell_var(int argc, char **argv) return EXIT_SUCCESS; } -static int rc_service(_unused int argc, char **argv) -{ - char *service; - - if (argc < 2) - eerrorx("%s: you need to specify a service", - applet); - - if (!(service = rc_service_resolve(argv[1]))) - eerrorx("%s: service `%s' does not exist", applet, argv[1]); - - *++argv = service; - execv(*argv, argv); - eerrorx("%s: %s", applet, strerror(errno)); - /* NOTREACHED */ -} - void run_applets(int argc, char **argv) { int i = 2; |