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

Feature/systemd master #324

Merged
merged 6 commits into from Jun 25, 2020
Merged

Feature/systemd master #324

merged 6 commits into from Jun 25, 2020

Conversation

pavelmash
Copy link
Sponsor Collaborator

@pavelmash pavelmash commented Jun 20, 2020

Systemd integration:

  • adedd export required libsystemd functions (new unit SynSystemd.pas)
  • added THTTPServer now able to use externally created listening socket
  • added SynLog can echo directly into journald (with log level support) - new property TSynLogFamily.EchoToConsoleUseJournal
  • added samples 36 is extended to show a systemd socket activation (see SQLite3/Samples/36 - Simple REST Benchmark/README.md)
  • added LogView understand some kind of journald export (limited for a while by singe PID)
  • fixed LogView program can be compiled under Linux
  • fixed createSuspended parameter added into THttpServer constructor (in real app server should be created in suspended state to allow configure it properties before accepting client requests)
  • I mark a TCrtSock.SockSendFlush as virtual to allow override it in descendants. For example it's allow me to create a "fake" socket and push it to ThreadPool.Push(fakeSocket)

pavel.mash added 6 commits June 20, 2020 15:44
- set external socket ReceiveTimeout to unblock accept() periodically
Signed-off-by: pavel.mash <pavel.mash@inbase.com.ua>
Signed-off-by: pavel.mash <pavel.mash@inbase.com.ua>
Copy link
Owner

@synopse synopse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will perhaps move SynSystemd to SynFPCLinux, and get rid to the SynCommons dependency.

@synopse synopse merged commit 48a4bfc into master Jun 25, 2020
@pavelmash
Copy link
Sponsor Collaborator Author

Yes, SynFPCLinux is still small, so as you wish

synopse pushed a commit that referenced this pull request Jun 25, 2020
synopse pushed a commit that referenced this pull request Jun 25, 2020
synopse pushed a commit that referenced this pull request Jun 25, 2020
synopse pushed a commit that referenced this pull request Jun 25, 2020
@pavelmash pavelmash deleted the feature/systemd_master branch July 1, 2020 17:44
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

Successfully merging this pull request may close these issues.

None yet

2 participants