Skip to content

Commit

Permalink
SC-12634 added howto to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ikorolev-c8y committed Jan 1, 2021
1 parent 8228325 commit 958287e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,32 @@ The agent starts automatically after installation, also at every time the machin

NOTE: packaging requires snapcraft >= 2.10 because lower versions do not support the confinement property, which is
required for packaging the agent as a snap.

#### How can I connect the agent through a proxy? ####

On CentOS 7 edit _cumulocity-agent.service_:

```bash
sudo vim /etc/systemd/system/cumulocity-agent.service
```
```
[Unit]
Description=cumulocity-agent
After=network.target
[Service]
Type=idle
Environment=http_proxy=http://<host>:<port>
Environment=https_proxy=http://<host>:<port>
ExecStart=/usr/bin/srwatchdogd /usr/bin/cumulocity-agent 240
[Install]
WantedBy=multi-user.target
```
Then reload systemd manager configuration and restart the agent.
```bash
sudo systemctl daemon-reload
sudo systemctl stop cumulocity-agent
ps aux | grep cumulocity-agent
sudo systemctl start cumulocity-agent
```

0 comments on commit 958287e

Please sign in to comment.