mirror of https://github.com/winsw/winsw
Documenting about updating winsw.exe itself
parent
c32ab2cc79
commit
269f069ee4
|
@ -63,6 +63,10 @@ To perform file operations, write a text file (in the UTF-8 encoding) at `myapp.
|
|||
|
||||
The success or failure of these operations will be recorded in the event log.
|
||||
|
||||
Note that it is apparently possible to [rename executables even when it's running](http://superuser.com/questions/488127/why-can-i-rename-a-running-executable-but-not-delete-it), which makes sense if you think about file handles.
|
||||
I have failed to find any authoritative source of information about this, but experimentally this even works on Windows XP and presumably on all the later Windows versions. This behavior can be used to update `winsw.exe` itself.
|
||||
Also see `WINSW_EXECUTABLE` environment variable.
|
||||
|
||||
The `<download>` element in the configuration file also provides an useful building block for a self updating services.
|
||||
|
||||
Restarting service from itself
|
||||
|
|
Loading…
Reference in New Issue