mirror of
https://github.com/skeeto/endlessh.git
synced 2024-12-03 01:53:07 +01:00
34 lines
655 B
Desktop File
34 lines
655 B
Desktop File
[Unit]
|
|
Description=Endlessh SSH Tarpit
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=30sec
|
|
ExecStart=/opt/endlessh/endlessh
|
|
KillSignal=SIGTERM
|
|
|
|
# Stop trying to restart the service if it restarts too many times in a row
|
|
StartLimitInterval=5min
|
|
StartLimitBurst=4
|
|
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
StandardInput=null
|
|
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
NoNewPrivileges=true
|
|
ConfigurationDirectory=/etc/endlessh
|
|
PrivateUsers=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|