mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
8e678847c2
When ErrorControl is set to `critical`, a failure to start osquery results in a system reboot. Instead, this should be set to `normal` where it is logged and the startup proceeds. Upstream docs are Docs are http://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceinstall.html This was fixed in https://github.com/osquery/osquery/pull/5467 and seems to have gotten lost.
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<CPackWiXPatch>
|
|
<CPackWiXFragment Id="CM_CP_osqueryd.osqueryd.exe">
|
|
<CreateFolder>
|
|
<Permission User="[WIX_ACCOUNT_USERS]" Read="yes"
|
|
ReadExtendedAttributes="yes" Traverse="yes"
|
|
ReadAttributes="yes" ReadPermission="yes" Synchronize="yes"
|
|
GenericWrite="no" WriteAttributes="no"/>
|
|
<Permission User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes"/>
|
|
<Permission User="[WIX_ACCOUNT_LOCALSYSTEM]" GenericAll="yes"/>
|
|
</CreateFolder>
|
|
<ServiceInstall Id='osqueryd'
|
|
Name='osqueryd'
|
|
Account='NT AUTHORITY\SYSTEM'
|
|
Arguments='--flagfile="[INSTALL_ROOT]osquery.flags"'
|
|
Start='auto'
|
|
Type='ownProcess'
|
|
Vital='yes'
|
|
ErrorControl='normal'/>
|
|
<ServiceControl Id='osqueryd'
|
|
Name='osqueryd'
|
|
Stop='both'
|
|
Start='install'
|
|
Remove='uninstall'
|
|
Wait='no'/>
|
|
</CPackWiXFragment>
|
|
<CPackWiXFragment Id="#PRODUCT">
|
|
<PropertyRef Id="WIX_ACCOUNT_LOCALSYSTEM" />
|
|
<PropertyRef Id="WIX_ACCOUNT_USERS" />
|
|
<PropertyRef Id="WIX_ACCOUNT_ADMINISTRATORS" />
|
|
</CPackWiXFragment>
|
|
</CPackWiXPatch> |