mirror of https://github.com/winsw/winsw
How to use (Group) Managed Service Accounts
parent
ab4a5c512e
commit
738ce95804
|
@ -201,6 +201,16 @@ It is possible to specify the useraccount (and password) that the service will r
|
||||||
The `<allowservicelogon>` is optional.
|
The `<allowservicelogon>` is optional.
|
||||||
If set to `true`, will automatically set the "Allow Log On As A Service" right to the listed account.
|
If set to `true`, will automatically set the "Allow Log On As A Service" right to the listed account.
|
||||||
|
|
||||||
|
To use [(Group) Managed Service Accounts](https://technet.microsoft.com/en-us/library/hh831782.aspx) append `$` to the account name and remove `<password>` element:
|
||||||
|
|
||||||
|
```
|
||||||
|
<serviceaccount>
|
||||||
|
<domain>YOURDOMAIN</domain>
|
||||||
|
<user>gmsa_account$</user>
|
||||||
|
<allowservicelogon>true</allowservicelogon>
|
||||||
|
</serviceaccount>
|
||||||
|
```
|
||||||
|
|
||||||
### Working directory
|
### Working directory
|
||||||
Some services need to run with a working directory specified.
|
Some services need to run with a working directory specified.
|
||||||
To do this, specify a `<workingdirectory>` element like this:
|
To do this, specify a `<workingdirectory>` element like this:
|
||||||
|
@ -228,4 +238,4 @@ This is useful when the main process is a console, which can respond to Ctrl+C c
|
||||||
|
|
||||||
```
|
```
|
||||||
<stopparentprocessfirst>true</stopparentprocessfirst>
|
<stopparentprocessfirst>true</stopparentprocessfirst>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue