ansible/roles/base/files/common-scripts/conditional-restart.sh
Kevin Fenzi e621c76c8f Fix up the fedmsg handler. Ticket https://pagure.io/fedora-infrastructure/issue/6550
Just change the conditional script to use systemctl try-restart and hopefully it will do what we want.
2018-02-20 00:24:11 +00:00

9 lines
175 B
Bash

#!/bin/bash
#
# We use this to try and restart a service.
# If it's not running, do nothing.
# If it is running, restart it.
#
SERVICE=$1
/usr/bin/systemctl try-restart $1