KDE4 systemd service start-limit error

I’m a KDE user (ver 4.14) running on CentOS 7.6.
I’m trying to install an old Logitech G15 keyboard on Linux. I managed to get everything installed and I’m trying to set up a systemd service so that the daemon will start up upon reboot.

The service file which i named it G15daemon_Logitech.service has been placed here:
/usr/lib/systemd/system

The file content is as below:

[Unit]
Description=Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD

[Service]
ExecStart=/usr/sbin/g15daemon
Restart=always

[Install]
WantedBy=multi-user.target

Enabling the service is fine, however the service does not autostart upon reboot. Checking its status using systemctl status G15daemon_Logitech.service
gave out the following

G15daemon_Logitech.service - Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD
Loaded: loaded (/usr/lib/systemd/system/G15daemon_Logitech.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Tue 2019-10-08 08:59:27 +08; 5h 6min ago
Process: 9509 ExecStart=/usr/sbin/g15daemon (code=exited, status=0/SUCCESS)
Main PID: 9509 (code=exited, status=0/SUCCESS)

I’m not that expert in Linux OS. Only use it at the office. Any ideas on how to resolve this?

Hi nabilishes,
if it starts manually, but not on boot it might be another service is started AFTER this service, but G15daemon_Logitech cannot start if this other service is not started first.
When u started manually it is not a problem as this other service was already started.

Can u run

journalctl -u G15daemon_Logitech

and display the output?

To see what the logs say?

Thanks.

Hi fabek,
I’ve asked my IT admin to run the command as i don’t have root access, and below is the output

root@lnx1762-064> journalctl -u G15daemon_Logitech
– Logs begin at Wed 2019-10-09 08:36:26 +08, end at Wed 2019-10-09 08:40:01 +08. –
Oct 09 08:36:42 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:43 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 09 08:36:43 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:43 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:44 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 09 08:36:44 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:44 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:46 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 09 08:36:46 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:46 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:48 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 09 08:36:48 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:48 lnx1762-064 systemd[1]: Started Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:49 lnx1762-064 systemd[1]: G15daemon_Logitech.service holdoff time over, scheduling restart.
Oct 09 08:36:49 lnx1762-064 systemd[1]: Stopped Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:49 lnx1762-064 systemd[1]: start request repeated too quickly for G15daemon_Logitech.service
Oct 09 08:36:49 lnx1762-064 systemd[1]: Failed to start Start Logitech G15 g15daemon that makes it possible to use the G-buttons and draw on the G15 LCD.
Oct 09 08:36:49 lnx1762-064 systemd[1]: Unit G15daemon_Logitech.service entered failed state.
Oct 09 08:36:49 lnx1762-064 systemd[1]: G15daemon_Logitech.service failed.

the g15daemon can start manually but it requires root access to run the command.

Hi nabilishes,
was the package installed through the distribution official repositories?
Assuming the service file you showed came with the instsallation and u didn’t change it, it is strange is not using a script like /etc/init.d/g15daemon, but directly the binary.

Please add the line inside the [Service] section

Environment=SYSTEMD_LOG_LEVEL=debug

save the service file

Then

sudo systemctl daemon-reload
sudo systemctl restart G15daemon_Logitech

and re-check the output of
sudo journalctl -u G15daemon_Logitech