Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move more initialization code into server core class #1123

Closed
totaam opened this issue Feb 17, 2016 · 15 comments
Closed

move more initialization code into server core class #1123

totaam opened this issue Feb 17, 2016 · 15 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Feb 17, 2016

Issue migrated from trac ticket # 1123

component: server | priority: major | resolution: fixed

2016-02-17 08:35:14: antoine created the issue


This will allow us to cleanup the code somewhat and avoid issues like #1122, or at least solve them more cleanly.
The server knows if it is doing an upgrade, exit or stop - so the exit code stuff can go away too.

@totaam
Copy link
Collaborator Author

totaam commented Jul 12, 2016

2016-07-12 17:52:23: antoine commented


Milestone renamed

@totaam
Copy link
Collaborator Author

totaam commented Sep 15, 2016

2016-09-15 03:59:33: antoine changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Sep 15, 2016

2016-09-15 03:59:33: antoine commented


Too late for this release (likely to cause tricksy bugs).

@totaam
Copy link
Collaborator Author

totaam commented Sep 21, 2016

2016-09-21 08:56:36: antoine commented


This would help simplify the code used for remote ssh start: we could just start a "plain" server and let the client tell the server what it wants without using command line arguments. (better cross version compatibility)
See #1319 which does this for starting sessions via the proxy.

@totaam
Copy link
Collaborator Author

totaam commented Aug 21, 2018

2018-08-21 17:46:15: antoine commented


See also #1838, #1943

@totaam
Copy link
Collaborator Author

totaam commented Sep 4, 2018

2018-09-04 04:29:00: antoine commented


r20286 moves in this direction.

@totaam
Copy link
Collaborator Author

totaam commented Mar 4, 2019

2019-03-04 02:56:25: antoine commented


Blocker for #2187

@totaam
Copy link
Collaborator Author

totaam commented May 7, 2019

2019-05-07 13:43:43: antoine commented


Preparatory work in r22652.

This is really hard: we can't instantiate the server class early because it (indirectly) loads GTK and X11 bindings, and for those we need to have initialized the vfb, which requires the following components to have been initialized too:

  • pam
  • daemonization
  • logging / directories creation
  • uinput virtual devices
  • dbus
    etc..
    Even within those components, there are dependencies: uinput before pam, etc..

@totaam
Copy link
Collaborator Author

totaam commented May 8, 2019

2019-05-08 09:54:07: antoine commented


Updates:

  • r22654 + r22655: move some initialization / validation code to methods
  • r22656 move vfb resizing to server_init()
  • r22659 move dbus bits
  • r22660 move dbus kill and property handling to server

Other undocumented rules I have (re)discovered:

  • dbus before gtk3
  • sockets before vfb?

@totaam
Copy link
Collaborator Author

totaam commented May 8, 2019

2019-05-08 12:27:08: antoine commented


Updates:

@totaam
Copy link
Collaborator Author

totaam commented May 9, 2019

2019-05-09 12:05:48: antoine commented


Updates:

  • r22666 close gtk display on exit now for all types of servers (+r22667 and r22668 fixups)
  • r22669 always fsync and close the pipe when using displayfd
  • r22670 + r22674: move socket cleanup code to the server
  • r22671 fix --bind-ssl socket errors on start (backport in 22672)
  • r22676 ssl setup moved
  • r22677 fixup dbus refactoring

Still TODO:

  • derive mdns data from socket info and move mdns setup code to server
  • find a way to move display related stuff into the server class, delaying the actual bindings initialization until we have a display to connect to.. (hard)

@totaam
Copy link
Collaborator Author

totaam commented May 9, 2019

2019-05-09 16:09:13: antoine commented


Updates:

@totaam
Copy link
Collaborator Author

totaam commented May 9, 2019

2019-05-09 18:17:32: antoine changed status from assigned to closed

@totaam
Copy link
Collaborator Author

totaam commented May 9, 2019

2019-05-09 18:17:32: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented May 9, 2019

2019-05-09 18:17:32: antoine commented


Updates:

Moving the display stuff to #2294.

This will do for 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant