Menu

dtlogin and systemd

Michael G.
2017-05-05
2017-05-05
  • Michael G.

    Michael G. - 2017-05-05

    Hi All,

    I just finished building on Fedora 25. All works great, thanks to the awesome developers making this happen.

    As noted in my subject, I was wondering if anyone has had success building a systemd service startup file for dtlogin. I have read through the init script on the wiki as well as some SysV-to-systemd tutorials, but, even after cutting things down the the bare minimum, I seem to be missing something.

    Thanks to all responses.

    -- Michael

     
  • Michael G.

    Michael G. - 2017-05-05

    I have an update:

    • created he file: /etc/systemd/system/dtlogin.service; it contains the following:

    [Unit]
    Description=dtlogin

    [Service]
    ExecStart=/usr/dt/bin/login

    [Install]
    Alias=display-manager.service

    • ran systemctl enable dtlogin.service
    • reboot
    • see dtlogin upon reboot and am able to login to CDE

    Observations: I noticed in the init script wiki page that dtlogin should be started with the -daemon option. I am not sure yet how to add that in this service file, but I would welcome insight.

    I also noticed that there is a slight delay in startup, where, initially, it looks like the startup will fail and boot only to runlevel 3 (in SysV terms) with no graphical boot. But, after some moments, dtlogin does display as expected. Again, if anyone has more experience with systemd and can enhance the above, please enlighten me.

    Looking forward to responses.

    -- Michael

     
  • Michael G.

    Michael G. - 2017-05-17

    I made an edit to the dtlogin.service file:

    [Unit]
    Description=dtlogin
    Requires=rpcbind.service
    After=rpcbind.service

    [Service]
    ExecStart=/usr/dt/bin/dtlogin

    [Install]
    Alias=display-manager.service

    I did this because upon reboot and login, CDE would start then kick me out back to dtlogin. adding the Requires and After lines ppears to have fixed the issue.

    -- Michael

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.