Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r3j3ct
- Set up auto-start
- Maldet's monitor mode is designed to run interactively or via cron. To run it as a service, you can create a systemd service.
- Example systemd service:
- sudo nano /etc/systemd/system/maldet-monitor.service
- Add:
- [Unit]
- Description=Maldet Monitoring Service
- After=network.target
- [Service]
- Type=simple
- ExecStart=/usr/local/maldet/maldet --monitor
- Restart=always
- User=root
- [Install]
- WantedBy=multi-user.target
- Enable and start:
- sudo systemctl daemon-reload
- sudo systemctl enable maldet-monitor
- sudo systemctl start maldet-monitor
- Final check:
- Ensure Maldet's configuration is correct.
- Run sudo maldet --monitor manually to see if it starts without errors.
- Create a systemd service as shown above for persistent monitoring.
Advertisement
Add Comment
Please, Sign In to add comment