问题
I have searched & googled a lot but I cannot get this to work.
I want the Beaglebone to boot up into my Qt application. However, what I get is that the GUI boots up OK but then in a few seconds the Angstrom login screen overwrites my GUI, which stays running in the background.
I set up a systemd service as follows in /etc/systemd/system:
#!/bin/sh
[Unit]
Description=Meta Systemd script
[Service]
USER=root
WorkingDirectory=/home/root
ExecStart=/bin/sh -c 'source /etc/profile ; /home/root/meta6 -qws'
After=local-fs.target
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
I activated it with:
systemctl enable meta.service
I disabled gdm with:
systemctl disable gdm
I suspect that maybe I should change the After statement to wait 'til some other service is complete. But what?
Regards, James
回答1:
The following commands will disable gdm on Beaglebone Black running angstrom
update-rc.d -f gdm remove
systemctl disable gdm.service
回答2:
Consider removing
#!/bin/sh
Also add the following to the file
[Unit]
After=getty@.service or getty.target
Also change the following
[Service]
ExecStart=/home/root/meta6 -qws'
The following might not be required
[Service]
After=local-fs.target
Reference
- Creating Ångström System Services on BeagleBone Black
来源:https://stackoverflow.com/questions/19730787/beaglebone-boot-to-qt-app