If you try to use an empty password in logOnAs (e.g: with Local Service) node-windows does not create a serviceaccount entry because password is falsy. This change defaults any missing credentials to the winsw default (NT AUTHORITY\LocalSystem).
It may be better to express this like if any of [domain,account,password] missing in logOnAs use the default credentials object so no one is surprised by a default in isolation.
If you try to use an empty password in
logOnAs
(e.g: withLocal Service
) node-windows does not create aserviceaccount
entry because password is falsy. This change defaults any missing credentials to the winsw default (NT AUTHORITY\LocalSystem).It may be better to express this like
if any of [domain,account,password] missing in logOnAs use the default credentials object
so no one is surprised by a default in isolation.