Overview
Disabling real-time monitoring for Linux Malware Detect reduces server resource consumption by reverting to scheduled nightly scans. This procedure provides the exact commands required to disable and re-enable the maldet service.
Prerequisites
- Root or sudo privileges on the target server
- Linux Malware Detect installed and operational
Disable Real-Time Monitoring
To reduce server load and switch to nightly scanning, stop and disable the service using the following commands:
systemctl stop maldet
systemctl disable maldet
Re-enable Real-Time Monitoring
To restore real-time monitoring capabilities, enable and start the service using the following commands:
systemctl enable maldet
systemctl start maldet
Troubleshooting
- Service does not respond to systemctl commands: Verify the service name and current status by running
systemctl status maldet. - Nightly scans are not executing after disabling real-time monitoring: Confirm that the Linux Malware Detect cron job is active and properly scheduled.