Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated omsagent installation guide for post install onboarding #185

Merged
merged 1 commit into from
Sep 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/OMS-Agent-for-Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <WorkspaceID> -s <Shared Key>
sudo ./service_control enable
```

## Onboarding using a file
Expand All @@ -181,8 +182,8 @@ sudo ./omsadmin.sh -w <WorkspaceID> -s <Shared Key>
WORKSPACE_ID=<WorkspaceID>
SHARED_KEY=<Shared Key>
```
3. Restart the omsagent:
`sudo service omsagent restart`
3. Register the omsagent service and restart:
`sudo ./service_control enable`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe specify the full path of the script

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is wrong. You still want to use the restart command.

The restart command will register the service, enable the service (or it should upon registration), and then start the service. This is what you want.

If you simply enable it, that will enable restarting the service at reboot time, which is a subset of what you want.

Another iteration please, or just throw this away since existing code should be fine. If not, then another iteration please.

4. The file will be deleted on successful onboarding

# Viewing Linux Data
Expand Down