From 1058e5d511942b2a7a304ae9deba4a577ca643b5 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Wed, 6 Mar 2019 07:03:58 -0500 Subject: [PATCH] Simplify markdown --- systemd/README.md | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/systemd/README.md b/systemd/README.md index 9da2d7955..7a34121b6 100644 --- a/systemd/README.md +++ b/systemd/README.md @@ -11,70 +11,56 @@ 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 + bash service cuckoo status - ``` + To view the full output of a service (including crashed services): - ```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. \ No newline at end of file