01-21-2024, 04:03 PM | #1 |
Enthusiast
Posts: 35
Karma: 3790
Join Date: Jan 2024
Device: Kobo
|
Gracefully shutdown KOReader
Hi again,
Is there a way to gracefully shutdown KOReader from the commandline ? I've noticed that SIGTERM or SIGKILL will stop the process, but it will not get a chance to save its settings. Thanks |
01-21-2024, 08:17 PM | #2 |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Hi.
There's no way to exit (or interact in any way with a running instance) from commandline. I'm not sure about the purpose but you can always patch the runtime to provide an interface over cli and use that to call Device.exit(). See https://github.com/koreader/koreader...tches#overview |
Advert | |
|
01-22-2024, 03:34 PM | #3 |
Enthusiast
Posts: 35
Karma: 3790
Join Date: Jan 2024
Device: Kobo
|
Koreader is running as a service, so when the service is stopped,so should koreader and that works, its just not saving the settings.
|
01-22-2024, 04:52 PM | #4 |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
|
01-22-2024, 08:04 PM | #5 | |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
Irrelevant, as process monitoring won't do shit if what's being monitored doesn't care about SIGHUP . (Spoiler: we don't). (Also wrong on nearly every platform, the only platform which uses a very very very very thin "service" shim is rM, but that's a technicality, as it doesn't do shit besides fire a one-off script that isn't actually KOReader yet). Last edited by NiLuJe; 01-22-2024 at 08:09 PM. |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Starting KoReader plugins independent of KoReader | jrw174 | PocketBook Developer's Corner | 0 | 08-13-2023 01:42 PM |
Starting KOReader from CC works only if KOReader was not running before | Norbi24 | KOReader | 7 | 09-24-2020 12:10 PM |
Shutdown? | Number9 | Kobo Reader | 1 | 08-14-2015 08:08 AM |
PRS-T1 Shutdown Looping | GeckoFriend | Sony Reader | 4 | 06-09-2015 08:49 PM |
EPUB generated by ebook-convert does not open gracefully on windows | Heritage History | Calibre | 4 | 07-08-2010 01:37 PM |