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 <amos@scylladb.com>
Message-Id: <a22943cc11a3de23db266c52fd476c08014098c4.1480607401.git.amos@scylladb.com>
This commit is contained in:
Amos Kong
2016-12-01 23:52:13 +08:00
committed by Avi Kivity
parent 125c39d8d1
commit 102792ee4b

View File

@@ -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]