• Simon McVittie's avatar
    CbyServiceManager: Instruct systemd to send SIGKILL after 10s · 6338e04a
    Simon McVittie authored
    After executing the ExecStop command-line or sending SIGTERM,
    by default systemd will wait up to 90 seconds for a service to exit
    before it becomes impatient and sends SIGKILL. This seems far too long
    for our use-case; wait 10 seconds instead.
    
    The choice of this arbitrary timeout is a trade-off. If it is too
    short, applications with a lot of state to serialize to disk might
    be killed before they have done so (we'd better hope they're using
    crash-safe I/O patterns like g_file_set_contents()). If it is too
    long, a user uninstalling an app-bundle will be left waiting
    a long time.
    
    When Ribchester calls TerminateBundle (T2696) it will need to wait
    a little longer than this; whatever timeout it uses, a broken or
    compromised per-user instance of Canterbury would be able to delay
    app-bundle upgrade, rollback or removal by up to that long.
    Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
    Reviewed-by: Frédéric Dalleau's avatarFrédéric Dalleau <frederic.dalleau@collabora.co.uk>
    Differential Revision: https://phabricator.apertis.org/D7088
    6338e04a
Name
Last commit
Last update
build-aux Loading commit data...
canterbury Loading commit data...
debian Loading commit data...
src Loading commit data...
tests Loading commit data...
.arcconfig Loading commit data...
.arclint Loading commit data...
.clang-format Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
canterbury-0.pc.in Loading commit data...
canterbury-gdbus-0.pc.in Loading commit data...
canterbury-platform-0.pc.in Loading commit data...
canterbury.doap Loading commit data...
canterbury.pc.in Loading commit data...
configure.ac Loading commit data...
git.mk Loading commit data...
glib-tap.mk Loading commit data...
tap-test Loading commit data...