Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Whalen committed Mar 6, 2019
1 parent 1058e5d commit d983c80
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,56 +11,70 @@ These files help run all the various parts of CAPE as systemd services, so that

1. Install virtualenv

```bash
sudo apt-get install -y python-virtualenv

```

2. Place CAPE in `/opt/CAPE`
3. Ensure the `CAPE` directory is owned by the `cuckoo` user

```bash
sudo chown cuckoo:cuckoo -R /opt/CAPE

```

4. Switch to the cuckoo user

```bash
sudo su cuckoo
```

5. Create a virtualenv at `/opt/CAPE/venv`

```bash
virtualenv /opt/CAPE/venv
```

6. Install required Python packages inside the virtualenv

```bash
/opt/CAPE/venv/bin/pip install -U -r /opt/CAPE/requirements.txt
```

7. Edit configuration files in `/opt/CAPE/conf` as needed
8. Return to your user

```bash
exit
```

9. Install the `systemd` service unit configuration files

```bash
sudo cp /opt/CAPE/systemd/*.service /opt/systemd/system
sudo sudo systemctl daemon-reload
```

10. Start the services for the first time

```bash
sudo service cuckoo-rooter start
sudo service cuckoo-processor start
sudo service cuckoo start
sudo service cuckoo-wsgi start
```

## Troubleshooting

To view the status and console output of a service:

bash
service cuckoo status

```bash
service cuckoo status
```

To view the full output of a service (including crashed services):


journalctl -u cuckoo-wsgi.service -r

```bash
journalctl -u cuckoo-wsgi.service -r
```

Note: The `journalctl -r` switch displays the log lines in reverse order, with the newest lines on top.

0 comments on commit d983c80

Please sign in to comment.