You are not logged in.

#1 2018-06-14 18:41:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Long delay starting custom systemd service

Ever since systemd went from 234.11 from 233.75+, the following service takes 8x longer to start (it just sits waiting for the network).  If I downgrade systemd to the older version, it works as expected without the delay.

Link to upstream bug report: https://github.com/systemd/systemd/issues/6500

I'm posting here seeking review/suggestions.

1) Is it my service?  Suggestions to modify it to start faster under the current version of systemd are welcomed.
2) Is it systemd?  Although I haven't seen much recently from upstream, if you guys feel there is something with systemd I could tweak to get the fast startup again, I would love to hear it.

Thanks all.

Service:

[Unit]
Description=Kodi standalone
After=systemd-user-sessions.service network-online.target sound.target mysqld.service
Requires=network-online.target
Conflicts=getty@tty1.service

[Service]
User=kodi
Group=kodi
PAMName=login
TTYPath=/dev/tty1
ExecStart=/usr/bin/xinit /usr/bin/kodi-standalone -- :0 -nolisten tcp vt1
Restart=on-abort
StandardInput=tty

[Install]
WantedBy=graphical.target

Last edited by jasonwryan (2018-06-14 18:57:59)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB