فهرست منبع

Documenting about updating winsw.exe itself

Kohsuke Kawaguchi 11 سال پیش
والد
کامیت
269f069ee4
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      README.markdown

+ 4 - 0
README.markdown

@@ -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