coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.78k stars 357 forks source link

Added missing XML field for logOnAs #261

Closed GregMydlarz closed 4 years ago

GregMydlarz commented 4 years ago

Added the line: {allowservicelogon: 'true'}

to the winsw.js for the logOnAs. Without that parameter, the service is being installed, but doesn't start automatically and requires manual password setting in the service manager as it won't start due to "log failed" issue. After the mentioned line is added into the config XML file, the service will start automatically as another user without issues.

coreybutler commented 4 years ago

Thank you! I'll try to get a new release out this week.