diff --git a/docs/OMS-Agent-for-Linux.md b/docs/OMS-Agent-for-Linux.md index 295011561..2e8538b33 100644 --- a/docs/OMS-Agent-for-Linux.md +++ b/docs/OMS-Agent-for-Linux.md @@ -171,6 +171,7 @@ Run the omsadmin.sh command supplying the workspace id and key for your workspac ``` cd /opt/microsoft/omsagent/bin sudo ./omsadmin.sh -w -s +sudo ./service_control enable ``` ## Onboarding using a file @@ -181,8 +182,8 @@ sudo ./omsadmin.sh -w -s WORKSPACE_ID= SHARED_KEY= ``` -3. Restart the omsagent: -`sudo service omsagent restart` +3. Register the omsagent service and restart: +`sudo ./service_control enable` 4. The file will be deleted on successful onboarding # Viewing Linux Data