From 102792ee4bc751f3ff53e3bf1c856b34536a4aad Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Thu, 1 Dec 2016 23:52:13 +0800 Subject: [PATCH] systemd: reset housekeeping timer at each start Currently housekeeping timer won't be reset when we restart scylla-server. We expect the service to be run at each start, it will be consistent with upstart script in Ubuntu 14.04 When we restart scylla-server, housekeepting timer will also be restarted, so let's replace "OnBootSec" with "OnActiveSec". Fixes: #1601 Signed-off-by: Amos Kong Message-Id: --- dist/common/systemd/scylla-housekeeping.timer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/common/systemd/scylla-housekeeping.timer b/dist/common/systemd/scylla-housekeeping.timer index b5f7ebd22e..267ab36f8c 100644 --- a/dist/common/systemd/scylla-housekeeping.timer +++ b/dist/common/systemd/scylla-housekeeping.timer @@ -4,7 +4,8 @@ After=scylla-server.service BindsTo=scylla-server.service [Timer] -OnBootSec=3 +# set OnActiveSec to 3 to safely avoid issues/1846 +OnActiveSec=3 OnUnitActiveSec=1d [Install]