11 lines
317 B
Bash

#!/bin/bash
# This script is called by systemd-sleep, and is used to prevent the
# daemon from getting stuck when resuming from sleep.
# Only noticed so far on resume from hibernate, but it's possible that
# it could happen on suspend as well.
if [[ $1 == "post" ]]; then
systemctl restart kanidm-unixd.service
fi