How to boot up into my own X11 GUI without gdm3

Hi,
Has anyone successfully boot directly into your own GUI with X11 but without using the gdb3 service?

The details:
I created a gui_autoexec.service with type=forking to a separate process that launches the “xinit, gui_app”. It automatically launches the gui_app successfully; but after a few minutes, the application shuts down. The system journal shows the cause is " xinit: unexpected signal"

However, when I launch the X11 and the GUI application directly from the command line, the application runs fine.

I am suspecting that the error in the gui_autoexec.service configuration but I cannot figure out what would be the proper option to run my gui application in a separate process from the gui_autoexec.service (keep the gui_app running after the gui_autoexec.service and its subsequence supporting shell completed. Enclosed is the content of the gui_autoexec.service

[Unit]
Description=Service for GUI Application Loader
After=systemd-user-sessions.service
After=getty@tty1.service

[Service]
Type=forking
RemainAfterExit=true
Restart=on-watchdog

User=debian

#Launch gui appl from a script
ExecStart=/home/debian/bin/auto_load_systemd.sh
WorkingDirectory=/home/debian/bin

[Install]
WantedBy=graphical.target

Just use slim and openbox… FLIR Lepton on BeagleBone Black and Green - Linux Guides - Electronic Component and Engineering Solution Forum - TechForum │ DigiKey

Regards,

1 Like

I found the solution. It requires an extended timeout which can be done by the changes in the /etc/systemd/system/gui_autoexec.service which shown below. We can close this issue.

[Service]
Type=forking
Restart=no
TimeoutStartSec=300 #in seconds
TimeoutStopSec=infinity