mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 06:24:20 +01:00
* 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
22 lines
555 B
Desktop File
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
|