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

Tracking the best systemd unit file(s) for Kolibri? #1832

Closed
holta opened this issue Jul 7, 2019 · 6 comments
Closed

Tracking the best systemd unit file(s) for Kolibri? #1832

holta opened this issue Jul 7, 2019 · 6 comments

Comments

@holta
Copy link
Member

holta commented Jul 7, 2019

@benjaoming wrote @ #1828 (comment):

In light of this issue and the fact that IIAB is shipping its own systemd service, I would recommend that you open an issue to have Kolibri installed through the Debian package instead? Interactive with dpkg,

Just so I understand, are you suggesting something like either of the following?
https://docs.ansible.com/ansible/latest/modules/apt_module.html
https://docs.ansible.com/ansible/latest/modules/dpkg_selections_module.html

IIAB has had endless trouble installing certain .deb packages directly in the case of Calibre, and likewise the lastest PPA's for Ansible, but perhaps the process is becoming more sane in recent years ?? Not that pip/npm/yarn are perfect by any stretch of the imagination, when normal apt installs are not possible :-)

whether as an uninstall, reinstall or fresh install will manage the systemd job, starting, stopping and reloading it when necessary.

If https://github.com/iiab/iiab/blob/master/roles/kolibri/templates/kolibri.service.j2 is not the latest we all definitely need to know yes!

Conversely where should we find the latest/recommended systemd unit file Kolibri that you recommend in general? Certainly IIAB has to manage diverse such system unit files, which sometimes need delicate modifications on slow-booting / older machine etc, especially when many service are running, that @jvonau and others have greatly helped with~

Refs:
#1591 "Better Kolibri performance with static file serve and wsgi"
#1646 "Migrate IIAB to kolibri-server for RPi performance"

@holta
Copy link
Member Author

holta commented Jul 7, 2019

Quick Background on the narrow issue of systemd unit files: even "official" unit files e.g. for major packages like dnsmasq very often contain showstopper bugs, so IIAB has learned that we have to be extremely judicious in choosing/refining the best strategies here!

(Accepting system unit files from upstream without extensive testing+review is definitely not an effective strategy in the end, despite our best wishes that has NOT worked out ;-)

@jvonau
Copy link
Contributor

jvonau commented Aug 25, 2019

A quick search of kolibri turns up no unit file, so we use ours. Closest upstream kolibri-server unit file unit file. We do not currently use kolibri-server as the webserver is not apache but nginx.

@benjaoming
Copy link

@jvonau it's part of the Debian package source, which is separate. https://github.com/learningequality/kolibri-installer-debian/blob/master/debian/startup/kolibri.service

@jvonau
Copy link
Contributor

jvonau commented Sep 7, 2019

Think then the question for IIAB is do you use the upstream ppa repo or continue to install via pip.

@holta
Copy link
Member Author

holta commented Oct 21, 2019

@jvonau can we close this now?

@holta
Copy link
Member Author

holta commented Dec 21, 2019

@jvonau LMK if this needs to be re-opened.

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

No branches or pull requests

3 participants