apex-tux
apex-tux copied to clipboard
Running software as a service fails by core dumping
Hello,
Finally, with your help guys, I could make this run for my device (Apex PRO).
Now, I want this to run in the background as soon as I log in to my session(nice to close itself when there is no compatible device:?) ).
So, following the AUR package, which service file also does not work, I created the service file, moved binaries and settings to proper folders, and ran the service as follows:
sudo mkdir /etc/apex-tux && sudo cp settings.toml /etc/apex-tux/
sudo cp target/release/apex-tux /usr/bin
sudo nano /etc/systemd/system/apex-tux.service
The service is the following:
[Unit]
Description=Steelseries Apex OLED Support
[Service]
Type=simple
WorkingDirectory=/etc/apex-tux
ExecStart=/usr/bin/apex-tux
[Install]
WantedBy=default.target
Now, at starting it and checking the status, we will get the issue:
sudo systemctl start apex-tux
sudo systemctl status apex-tux ✔ 4s
× apex-tux.service - Steelseries Apex OLED Support
Loaded: loaded (/etc/systemd/system/apex-tux.service; disabled; preset: disabled)
Active: failed (Result: core-dump) since Tue 2023-06-13 20:09:40 +03; 2s ago
Duration: 1.564s
Process: 228275 ExecStart=/usr/bin/apex-tux (code=dumped, signal=SEGV)
Main PID: 228275 (code=dumped, signal=SEGV)
CPU: 128ms
Jun 13 20:09:38 luis-rogstrixg713qrg713qr systemd[1]: Started Steelseries Apex OLED Support.
Jun 13 20:09:40 luis-rogstrixg713qrg713qr systemd[1]: apex-tux.service: Main process exited, code=dumped, s>
Jun 13 20:09:40 luis-rogstrixg713qrg713qr systemd[1]: apex-tux.service: Failed with result 'core-dump'.
lines 1-11/11 (END)
When we execute this software stand-alone, it works fine, but executing it as a service fails.
Why? What can we do here?
Thank you