Installs the service.
winsw install [<path-to-config>] [--no-elevate] [--user|--username <username>] [--pass|--password <password>]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
-
--user|--username <username>
Specifies the user name of the service account.
-
--pass|--password <password>
Specifies the password of the service account.
Uninstalls the service.
winsw uninstall [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
Starts the service.
winsw start [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
Stops the service.
winsw stop [<path-to-config>] [--no-elevate] [--no-wait]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
-
--no-wait
Doesn't wait for the service to actually stop.
-
--force
Stops the service even if it has started dependent services.
Stops and then starts the service.
winsw restart [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
-
--force
Restarts the service even if it has started dependent services.
Checks the status of the service.
winsw status [<path-to-config>]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
Refreshes the service properties without reinstallation.
winsw refresh [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
-
--no-elevate
Doesn't automatically trigger a UAC prompt.
Customizes the wrapper executable.
winsw customize -o|--output <output> --manufacturer <manufacturer>
-
-o|--output <output>
Required. Specifies the path to the output file.
-
--manufacturer <manufacturer>
Specifies the manufacturer name of the customized executable.
Draws the process tree associated with the service.
winsw dev ps [<path-to-config>] [-a|--all]
-
-a|--all
Optional. Draws the process tree associated with all services.
Terminates the service if it has stopped responding.
winsw dev kill [<path-to-config>] [--no-elevate]
Lists services managed by the current executable.
winsw dev list