Revisions
-
magnetikonline revised this gist
May 16, 2016 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
magnetikonline revised this gist
Feb 26, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
magnetikonline revised this gist
Feb 26, 2015 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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" "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 -
magnetikonline revised this gist
Feb 26, 2015 . 1 changed file with 45 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ``` -
magnetikonline created this gist
Feb 26, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```