cowrie/docs/systemd
Michel Oosterhof fb24e87d59
update systemd install instructions (#1044)
2019-03-12 23:23:23 +04:00
..
etc Systemd docs (#1027) 2019-03-03 08:28:45 +04:00
README.rst update systemd install instructions (#1044) 2019-03-12 23:23:23 +04:00

README.rst

Automatically starting Cowrie with systemd
###########################################

NOTE: untested

* Copy the file `docs/systemd/system/cowrie.socket` to `/etc/systemd/system`

* Copy the file `docs/systemd/system/cowrie.service` to `/etc/systemd/system`

* Examine `/etc/systemd/system/cowrie.server` and ensure the paths are correct for your installation if you use non-standard file system locations.

* Modify `etc/cowrie.cfg` to listen on ports via systemd:

    [ssh]
    listen_endpoints = systemd:domain=INET6:index=0

    [telnet]
    listen_endpoints = systemd:domain=INET6:index=1

* Modify `bin/cowrie` script like this:

  * Change DAEMONIZE="" line to DAEMONIZE="-n"
  * Change #STDOUT="no" line to STDOUT="yes"

* Run sudo systemctl start cowrie.socket && sudo systemctl enable cowrie.socket