Skip to content

Instantly share code, notes, and snippets.

@matthew-walter-works
Forked from magnetikonline/README.md
Created January 5, 2018 16:05

Revisions

  1. @magnetikonline magnetikonline revised this gist May 16, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    # NSSM cheatsheat
    - [Create a new service](#create-a-new-service)
    - [List parameters for a service](#list-parameters-for-a-service)
    - [Set a parameter for a service](#set-a-parameter-for-a-service)
    - [Parameter list](#parameter-list)

    ## Create a new service
    ```dos
  2. @magnetikonline magnetikonline revised this gist Feb 26, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,17 @@
    # NSSM cheatsheat

    ## Create a new service
    ```
    ```dos
    nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext" "argument1 argument2"
    ```

    ## List parameters for a service
    ```
    ```dos
    nssm.exe get SERVICE_NAME *
    ```

    ## Set a parameter for a service
    ```
    ```dos
    nssm.exe set SERVICE_NAME PARAMETER_NAME PARAMETER_VALUE
    nssm.exe set SERVICE_NAME Description "My service description."
    nssm.exe set SERVICE_NAME Start SERVICE_AUTO_START
  3. @magnetikonline magnetikonline revised this gist Feb 26, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## Create a new service
    ```
    nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext"
    nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext" "argument1 argument2"
    ```

    ## List parameters for a service
    @@ -13,6 +13,10 @@ nssm.exe get SERVICE_NAME *
    ## Set a parameter for a service
    ```
    nssm.exe set SERVICE_NAME PARAMETER_NAME PARAMETER_VALUE
    nssm.exe set SERVICE_NAME Description "My service description."
    nssm.exe set SERVICE_NAME Start SERVICE_AUTO_START
    nssm.exe set SERVICE_NAME AppExit Default Exit
    nssm.exe set SERVICE_NAME AppStdout "C:\log\service-output.log"
    ```

    ## Parameter list
  4. @magnetikonline magnetikonline revised this gist Feb 26, 2015. 1 changed file with 45 additions and 0 deletions.
    45 changes: 45 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,48 @@ nssm.exe get SERVICE_NAME *
    ```
    nssm.exe set SERVICE_NAME PARAMETER_NAME PARAMETER_VALUE
    ```

    ## Parameter list
    ```
    AppAffinity
    AppDirectory
    AppEnvironment
    AppEnvironmentExtra
    AppExit
    Application
    AppNoConsole
    AppParameters
    AppPriority
    AppRestartDelay
    AppRotateBytes
    AppRotateBytesHigh
    AppRotateFiles
    AppRotateOnline
    AppRotateSeconds
    AppStderr
    AppStderrCreationDisposition
    AppStderrFlagsAndAttributes
    AppStderrShareMode
    AppStdin
    AppStdinCreationDisposition
    AppStdinFlagsAndAttributes
    AppStdinShareMode
    AppStdout
    AppStdoutCreationDisposition
    AppStdoutFlagsAndAttributes
    AppStdoutShareMode
    AppStopMethodConsole
    AppStopMethodSkip
    AppStopMethodThreads
    AppStopMethodWindow
    AppThrottle
    DependOnGroup
    DependOnService
    Description
    DisplayName
    ImagePath
    Name
    ObjectName
    Start
    Type
    ```
  5. @magnetikonline magnetikonline created this gist Feb 26, 2015.
    16 changes: 16 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # NSSM cheatsheat

    ## Create a new service
    ```
    nssm.exe install SERVICE_NAME "C:\path\to\exe\or\bat\file.ext"
    ```

    ## List parameters for a service
    ```
    nssm.exe get SERVICE_NAME *
    ```

    ## Set a parameter for a service
    ```
    nssm.exe set SERVICE_NAME PARAMETER_NAME PARAMETER_VALUE
    ```