9 lines
308 B
Bash
Executable File

#!/bin/sh
set -eu
# An upgrade must quiesce the old daemon before replacing binaries or schema.
if command -v systemctl >/dev/null 2>&1 && systemctl is-active --quiet drosync.service; then
install -d -m 0755 /run/drosync-install
systemctl stop drosync.service
touch /run/drosync-install/was-running
fi