Installing Linux

From Thriving on the \'net


systemctl

Sendmail

Had this issue o a server.

Failed to set a watch for sendmail.service's PID file /run/sendmail.pid: No space left on device

There was no issue with space!

It turns out that this error was triggered because there were too few watchers for inotify. In my case, this problem was not logged in any error log anywhere in the system. [1]

Simply editing the file /etc/sysctl.conf adding:

fs.inotify.max_user_watches = 262144

...and then running

sudo sysctl -p 

solved the problem.

Category:Help