Guest User

Maldet's monitor mode

a guest
Dec 15th, 2025
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. r3j3ct
  2.  
  3. Set up auto-start
  4.  
  5. Maldet's monitor mode is designed to run interactively or via cron. To run it as a service, you can create a systemd service.
  6.  
  7. Example systemd service:
  8.  
  9.  
  10.  
  11. sudo nano /etc/systemd/system/maldet-monitor.service
  12.  
  13.  
  14.  
  15. Add:
  16.  
  17.  
  18.  
  19. [Unit]
  20. Description=Maldet Monitoring Service
  21. After=network.target
  22.  
  23. [Service]
  24. Type=simple
  25. ExecStart=/usr/local/maldet/maldet --monitor
  26. Restart=always
  27. User=root
  28.  
  29. [Install]
  30. WantedBy=multi-user.target
  31.  
  32.  
  33.  
  34. Enable and start:
  35.  
  36.  
  37.  
  38. sudo systemctl daemon-reload
  39. sudo systemctl enable maldet-monitor
  40. sudo systemctl start maldet-monitor
  41.  
  42.  
  43.  
  44. Final check:
  45.  
  46. Ensure Maldet's configuration is correct.
  47. Run sudo maldet --monitor manually to see if it starts without errors.
  48. Create a systemd service as shown above for persistent monitoring.
  49.  
Advertisement
Add Comment
Please, Sign In to add comment