mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Make <name> and <description> optional
This commit is contained in:
@@ -378,7 +378,11 @@ namespace WinSW
|
||||
username,
|
||||
password);
|
||||
|
||||
sc.SetDescription(descriptor.Description);
|
||||
string description = descriptor.Description;
|
||||
if (description.Length != 0)
|
||||
{
|
||||
sc.SetDescription(description);
|
||||
}
|
||||
|
||||
SC_ACTION[] actions = descriptor.FailureActions;
|
||||
if (actions.Length > 0)
|
||||
|
||||
Reference in New Issue
Block a user