# systemctl --now enable maldet.service
Created symlink /etc/systemd/system/multi-user.target.wants/maldet.service → /usr/lib/systemd/system/maldet.service.
Job for maldet.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status maldet.service" and "journalctl -xeu maldet.service" for details.
$ systemctl status maldet.service
x maldet.service - Linux Malware Detect monitoring - maldet
Loaded: loaded (/usr/lib/systemd/system/maldet.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Sat 2021-12-04 14:30:43 EET; 23min ago
Process: 28329 ExecStart=/usr/local/maldetect/maldet --monitor $default_monitor_mode (code=exited, status=0/SUCCESS)
CPU: 212ms
Dec 04 14:30:42 fedora systemd[1]: Starting Linux Malware Detect monitoring - maldet...
Dec 04 14:30:42 fedora maldet[28329]: Linux Malware Detect v1.6.4
Dec 04 14:30:42 fedora maldet[28329]: (C) 2002-2019, R-fx Networks <proj@rfxn.com>
Dec 04 14:30:42 fedora maldet[28329]: (C) 2019, Ryan MacDonald <ryan@rfxn.com>
Dec 04 14:30:42 fedora maldet[28329]: This program may be freely redistributed under the terms of the GNU GPL v2
Dec 04 14:30:43 fedora maldet[28329]: maldet(28329): {mon} could not find inotifywait command, install yum package inotify-tools or download from https://github.com/rvoicilas/inotify-tools/wiki/
Dec 04 14:30:43 fedora systemd[1]: maldet.service: Can't open PID file /usr/local/maldetect/tmp/inotifywait.pid (yet?) after start: Operation not permitted
Dec 04 14:30:43 fedora systemd[1]: maldet.service: Failed with result 'protocol'.
Dec 04 14:30:43 fedora systemd[1]: Failed to start Linux Malware Detect monitoring - maldet.
Temporary solutions:
Run this command to replace the following function file:
ShellScript
wget -O /usr/local/maldetect/internals/functions https://raw.githubusercontent.com/rfxn/linux-malware-detect/master/files/internals/functions
systemctl start maldet
and check the status of maldet:
ShellScript
systemctl status maldet