[Unit] Description=ssh connexion detect Daemon After=sshd.service [Service] Type=simple User=daemon Group=daemon ExecStart=/usr/bin/sshdetect Restart=always # Configures the time to wait before service is stopped forcefully. TimeoutStopSec=10 [Install] WantedBy=multi-user.target