- Posts: 12
- Thank you received: 3
How do start YACReaderLibraryServer on OSX?
- cloudy
- Topic Author
- Offline
- New Member
-
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- cloudy
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 3
headless also means I shouldn't be bordered to open a terminal to run it. It should be handled as a service.
On GNU/Linux I should be able to run it through some initi.d script, on Mac OS I should be able to accomplish that through a plist xml file to feed launchctl.
I've created some, but it never starts, almost as if it can only run on foreground. If that's it, then it's not a server, pardon me
Please Log in or Create an account to join the conversation.
- cloudy
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 3
As soon as I figure this out, I'll post the plist.
P.S.: would be nice to add options and commands to the server (options like --set-port --use-library etc.. and commands like show-running-config etc..) which would help with debugging.
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
systemctl is used to enable the service, maybe you can use launchctl in macos.
Since YACReader has to run in multiple platforns choosing the right way to running YACReaderLibraryServer is up to the user.
One limitation is that YACReaderLibrary and YACReaderLibraryServer can't run at the same time. The idea to fix this is that the service should be replaced by YACReaderLibrary when it is running and after it closes the service should start running again. Patches are welcome.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
cloudy wrote: P.S.: would be nice to add options and commands to the server (options like --set-port --use-library etc.. and commands like show-running-config etc..) which would help with debugging.
Sure, implementing additional commands should be pretty straight forward, feel free to send a pull request in github.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- cloudy
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 3
The plist I quickly draft for running YACReaderLibraryServer as a service with launchctl is actually working fine on Mac OS 10.13.
The problem I had, was due to the fact that I was working on a Mac OS 10.14.
It seems to listen on random ports instead of the one configured in the ini file, when launched on Mojave.
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- cloudy
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 3
I am sure there was no other service running on that port, but for some reason, every time I started the server it started listening on two different ports: the one set in the ini file, and another one random (never showing the actual library, anyway, just a blank page).
After starting fresh it's now working as expected.
I still don't see anything on Safari for Mojave, though the important thing is I see the content of the library from the iPad.
Please Log in or Create an account to join the conversation.
- cloudy
- Topic Author
- Offline
- New Member
-
- Posts: 12
- Thank you received: 3
The first one (
Attachment not found
The second one (
Attachment not found
) is meant to auto-update the library database whenever the Library source folder is changed.
Both files should be put in
Pros & Cons:
Pros: never worry about manually starting or updating the library
Cons: YACReaderLibrary cannot run, as it's antagonist to YACReaderLibraryServer
P.S.: Of course you can always run only the second file, and having the library updated on cue, and still have the ability to fire up YACReaderLibrary
Please Log in or Create an account to join the conversation.