Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Daemon on Linux doesn't seem to work #39

Closed
leledumbo opened this issue Jun 1, 2013 · 4 comments
Closed

Daemon on Linux doesn't seem to work #39

leledumbo opened this issue Jun 1, 2013 · 4 comments

Comments

@leledumbo
Copy link
Collaborator

I want to try FCL HTTP Daemon Broker on Linux. After following steps here, the service runs, but the application doesn't seem to work correctly. Requesting from browser behaves as if the application doesn't run. I tried running the service manually by passing -r directly to the executable and indeed it doesn't work. Removing the daemon broker and returning to purely embedded web server works.

@silvioprog
Copy link
Owner

I tested it in a small sample (using the 5445 port):

$ ./project1 -r

And it worked fine.

Are you declared cthreads unit in your .lpr?

If the port of your project is < 1024 run your project as super user.

@silvioprog
Copy link
Owner

Tested it running as daemon and working fine too. I think that your problem is just to declare cthreads. :)

@silvioprog
Copy link
Owner

...oops, I forgot my environment: Linux Mint 64 bits (based on Debian Ubuntu); Lazarus 1.1 r41250 FPC 2.7.1 x86_64-linux-gtk 2

@leledumbo
Copy link
Collaborator Author

Ah yes, you're right, I miss the cthreads unit :">
It's weird that I don't get any exception as normally in desktop app

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

No branches or pull requests

2 participants