From db4906a97c3b2484d6b7a4905d39077ca4a41f45 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Tue, 1 Apr 2014 14:31:31 -0700 Subject: [PATCH] This is the Windows way of expanding variables --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 04c2996..0723bdb 100644 --- a/README.markdown +++ b/README.markdown @@ -68,7 +68,7 @@ The `` element in the configuration file also provides an useful build Restarting service from itself ------------------------------ To support self-restarting services, winsw exposes `WINSW_EXECUTABLE` environment variable into the forked process, which refers to the full path of `winsw.exe` that's managing the service. -To restart the service from within, execute `$WINSW_EXECUTABLE restart!`. Note that you are invoking `restart!` command, not `restart` command. This hidden command is a flavor of the `restart` operation, +To restart the service from within, execute `%WINSW_EXECUTABLE% restart!`. Note that you are invoking `restart!` command, not `restart` command. This hidden command is a flavor of the `restart` operation, except that winsw creates another winsw process in a separate process group, and restarts the service from there. This additional indirection is necessary, because Windows Service Control Manager (SCM) will kill child processes recursively when it stops the service. SCM doesn't provide restart operation