> On 2 Dec 2022, at 14:56, Lentes, Bernd <bernd.len...@helmholtz-muenchen.de> > wrote: > > [Service] > ExecStart=/root/skripte/dev_shm_inotifywait.sh > Type=exec > # ExecStart=/usr/bin/inotifywait "-e delete -d -o /var/log/monitordev_shm.log > -r --timefmt %d.%m.%Y-%H:%M:%S --format %w%f:%e:%T /dev/shm" > # Restart=always
The Type= does not match how inotifywait is being run. You would need Type=fork (I think). But use Type=simple and remove the -d. With systemd its not necessary to use a "daemon" mode. Daemon mode is legacy in an systemd wolld and will just make maintaining the service harder then is necessary. Barry