Files
cowrie/doc/systemd/cowrie.service
dwasserm 0254a78d53 Updated to correct PIDFile path for cowrie.service (#395)
* Updated service template to use the virtual-env and proper PID file location

* Fixed PIDFile path in cowrie.service template

* Revert "Fixed PIDFile path in cowrie.service template"

This reverts commit 022afb71345d49fb18d8b46d129275a988d22b74.

* Revert "Revert "Fixed PIDFile path in cowrie.service template""

This reverts commit 5b01372176a72a851b07d4116387010221fd137b.

Revert changes

* Fixed PIDFile path in cowrie.service template

* Updated to correct PIDFile path for cowrie.service
2017-01-04 23:26:53 +04:00

22 lines
555 B
Desktop File

[Unit]
Description=Cowrie SSH and Telnet Honeypot
Documentation=https://github.com/micheloosterhof/cowrie
After=network.target
#Wants=syslog.target
Wants=mysql.service
[Service]
Type=forking
User=cowrie
Group=cowrie
PIDFile=/home/cowrie/cowrie/var/run/cowrie.pid
ExecStart=/home/cowrie/cowrie/start.sh cowrie-env
ExecStop=/home/cowrie/cowrie/stop.sh
ExecReload=/home/cowrie/cowrie/stop.sh && sleep 10 && /home/cowrie/cowrie/start.sh cowrie-env
WorkingDirectory=/home/cowrie/cowrie/
Restart=on-failure
TimeoutSec=300
[Install]
WantedBy=multi-user.target