Enable and Start the Watchdog Service
Example policy for configuring the watchdog service
Overview
The Policy
{
"PolicyId": "policy-enable-watchdog",
"PolicyName": "Enable and Start Watchdog",
"PolicyType": "ConfigurationUpdate",
"Status": "enabled",
"Operator": "And",
"Actions": {
"OnSuccess": { "Controls": [] },
"OnFailure": { "Command": "deny" }
},
"Rules": [],
"Extension": {
"TargetFile": "appsettings.json",
"Action": "Update",
"SettingsJson": {
"Watchdog": {
"CheckIntervalSec": 10,
"AutoRemediate": true,
"StartupDelaySec": 90
}
},
"JobId": "start-watchdog-service",
"JobJson": {
"id": "start-watchdog-service",
"name": "Start Watchdog Service",
"description": "Starts the KeeperWatchdog OS service on the endpoint.",
"enabled": true,
"asUser": false,
"priority": 9,
"events": [
{
"eventType": "Custom",
"customEvent": "PolicyPreprocessingCompleted"
}
],
"parameters": [],
"tasks": [
{
"id": "start-watchdog-windows",
"name": "Start Watchdog on Windows",
"command": "sc",
"arguments": "start KeeperWatchdog",
"expectedExitCode": 0,
"timeoutSeconds": 30,
"executionType": "Service",
"onFailure": "start-watchdog-unix"
},
{
"id": "start-watchdog-unix",
"name": "Start Watchdog on Linux/macOS",
"command": "systemctl",
"arguments": "start keeper-watchdog",
"expectedExitCode": 0,
"timeoutSeconds": 30,
"executionType": "Service"
}
],
"osFilter": {
"windows": true,
"linux": true,
"macOS": true
}
}
}
}What Each Part Does
Key
Type
Default
Description
What Happens on the Endpoint
Variations
Last updated
Was this helpful?

