diff options
Diffstat (limited to 'src/rc/rc-applets.c')
-rw-r--r-- | src/rc/rc-applets.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index 821832cd..42f839fa 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -207,7 +207,7 @@ static int do_service(int argc, char **argv) if (argc > 1) service = argv[1]; else - service = getenv("SVCNAME"); + service = getenv("RC_SVCNAME"); if (! service || *service == '\0') eerrorx("%s: no service specified", applet); @@ -229,7 +229,7 @@ static int do_service(int argc, char **argv) else if (strcmp(applet, "service_started_daemon") == 0) { d[0] = argv[1]; - service = getenv("SVCNAME"); + service = getenv("RC_SVCNAME"); if (argc > 3) { service = argv[1]; d[0] = argv[2]; @@ -252,7 +252,7 @@ static int do_service(int argc, char **argv) static int do_mark_service(int argc, char **argv) { bool ok = false; - char *svcname = getenv("SVCNAME"); + char *svcname = getenv("RC_SVCNAME"); char *service = NULL; char *runscript_pid; char *mtime; @@ -262,7 +262,7 @@ static int do_mark_service(int argc, char **argv) if (argc > 1) service = argv[1]; else - service = getenv("SVCNAME"); + service = getenv("RC_SVCNAME"); if (! service || *service == '\0') eerrorx("%s: no service specified", applet); @@ -311,7 +311,7 @@ static int do_mark_service(int argc, char **argv) static int do_value(int argc, char **argv) { bool ok = false; - char *service = getenv("SVCNAME"); + char *service = getenv("RC_SVCNAME"); char *option; if (! service) |