Tool/software: Linux
Ecoli is my QT procedure.
When I use below command, the procedure can start.
#“./Ecoli -platform eglfs”
But when I use systemd service to start, the procedure cann`t start,
Boot command as below
#systemctl start bootup-Ecoli
Below is the service file bootup-Ecoli.service
“
[Unit]
Description=bootup Ecoli program Service
[Service]
Type=forking
ExecStart=/usr/test/Ecoli -platform eglfs
StandardOutput=syslog
StandardError=inherit
[Install]
WantedBy=multi-user.target
“
And below is systemd log
“
[[0;1;31m●[[0m bootup-Ecoli.service - bootup Ecoli program Service
Loaded: loaded (/etc/systemd/system/bootup-Ecoli.service; disabled; vendor preset: enabled)
Active: [[0;1;31mfailed[[0m (Result: core-dump) since Sat 2017-12-23 13:49:44 UTC; 9s ago
Process: 1192 ExecStart=/usr/test/Ecoli -platform eglfs [[0;1;31m(code=dumped, signal=ABRT)[[0m
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: loaded module : gbm_pvr.so
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: found valid GBM backend : gbm_pvr.so
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: Could not create GBM device (No such device)
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: Could not open device - aborting!
Dec 23 13:49:44 am57xx-evm Ecoli[1192]: PVR:(Error): [ 1192-> 1192] < gbm_pvr_create_device():592|ERROR> Failed to create DBM device: No such device [0, ]
Dec 23 13:49:44 am57xx-evm systemd[1]: [[0;1;39mbootup-Ecoli.service: Control process exited, code=dumped status=6[[0m
Dec 23 13:49:44 am57xx-evm systemd[1]: [[0;1;31mFailed to start bootup Ecoli program Service.[[0m
Dec 23 13:49:44 am57xx-evm systemd[1]: [[0;1;39mbootup-Ecoli.service: Unit entered failed state.[[0m
Dec 23 13:49:44 am57xx-evm systemd[1]: [[0;1;39mbootup-Ecoli.service: Failed with result 'core-dump'.[[0m
“
Why?