瀏覽代碼

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