From 63608f4c3f69d719f1302fe8005363aa0fc062af Mon Sep 17 00:00:00 2001 From: Sergiu Puscas Date: Mon, 10 Jun 2024 16:53:58 +0200 Subject: [PATCH] Update systemd service config: set KillMode=control-group instead of none --- gcsf.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcsf.service b/gcsf.service index 372f551..e98f557 100644 --- a/gcsf.service +++ b/gcsf.service @@ -18,8 +18,9 @@ Environment=GCSF_SESSION="some_session_name" ExecStart=/full/path/to/gcsf mount $GCSF_MOUNTPOINT -s $GCSF_SESSION ExecStop=/bin/fusermount -u $GCSF_MOUNTPOINT User=some_user_name -# GCSF will die by itself after the fusermount command -KillMode=none +# Set KillMode to "control-group": after ExecStop is executed, all remaining processes will be killed. +# Normally, GCSF will die by itself after the fusermount command is executed, but in some cases (such as during start-up while still receiving initial data from the Drive API), fusermount will fail (as expected, since the file system is not mounted yet) and the gcsf process will continue running. In that case, systemd should kill it. +KillMode=control-group Restart=on-failure [Install]