[Unit] Description=Imunify360 agent Before=cagefs.service After=network.target iptables.service firewalld.service Wants=imunify360-webshield.service ossec-hids.service imunify360-php-daemon.service imunify-realtime-av.service imunify-notifier.socket Wants=imunify360-unified-access-logger.service [Service] Environment=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp Environment=LANG=en_US.UTF-8 Environment=LC_ALL=en_US.UTF-8 Environment=SQLITE_TMPDIR=/var/imunify360/tmp Type=notify ExecStartPre=/bin/mkdir -p /var/run/imunify360_user ExecStart=/usr/bin/imunify-service ExecStartPost=/bin/bash -c "echo $MAINPID > /var/run/imunify360.pid" PIDFile=/var/run/imunify360.pid #TODO: must be not less than defence360agent/cli/server.py:stop(seconds=8) TimeoutStartSec=900 TimeoutStopSec=60 Restart=on-failure RestartSec=5 StartLimitInterval=600s StartLimitBurst=5 [Install] WantedBy=multi-user.target