<div dir="ltr">I have a service like:<br><br>sudo tee /etc/systemd/system/index-directories.service << END<br>[Unit]<br>Description=Index Directories Using Plocate<br>RequiresMountsFor=/media/ismail/8TBRaid0<br>RequiresMountsFor=/media/ismail/SSDWorking<br><br>[Service]<br>ExecStart=/home/ismail/.dotfiles/.resources/bash-scripts-rofi/index-directories<br>User=ismail<br>Group=ismail<br>Type=exec<br>Restart=on-failure<br>RestartSec=5s<br><br>[Install]<br>WantedBy=multi-user.target<br>END<br><br>I run it using:<br><br>sudo systemctl daemon-reload<br>sudo systemctl start index-directories.service<br>sudo systemctl enable index-directories.service<br><br>Its simple job is to run the script index-directories at startup once. (This is because for the first run the script takes some time. Afterwards it does not take that much time. So I thought it would be better if I ran it in the background once.)<br><br>Now the issue is when i enable the service, after reboot it freeze the keyboard and mouse for ~10sec in gdm screen. Then it unfreeze the keyboard and mouse. I mean, it seems like until the service is finished i can not use my keyboard or mouse.<br><br>Why is this happening? How to run the service so that it does not freeze my keyboard and mouse.<br></div>