Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
John Mai committed May 29, 2019
1 parent bf0cf09 commit e537a44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ var daemon = function(config){
account: null,
password: null,
domain: process.env.COMPUTERNAME,
allowServiceLogon: true,
mungeCredentialsAfterInstall: true
}
},
Expand Down
10 changes: 5 additions & 5 deletions lib/winsw.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ module.exports = {
}

// optionally set the service logon credentials
if (config.logOnAs && config.logOnAs.account && config.logOnAs.password &&
config.logOnAs.domain)
if (config.logOnAs)
{
xml.push({
serviceaccount: [
{domain: config.logOnAs.domain},
{user: config.logOnAs.account},
{password: config.logOnAs.password}
{domain: config.logOnAs.domain || 'NT AUTHORITY'},
{user: config.logOnAs.account || 'LocalSystem'},
{password: config.logOnAs.password || ''},
{allowservicelogon: config.logOnAs.allowServiceLogon}
]
});
}
Expand Down
1 change: 1 addition & 0 deletions lib/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ var killkid = function(){
process.on('exit', killkid);
process.on("SIGINT", killkid);
process.on("SIGTERM", killkid);
process.on("SIGKILL", killkid);

// Launch the process
launch('info', 'Starting ' + argv.f);

0 comments on commit e537a44

Please sign in to comment.