cdist-contrib/type/__matrix_synapse_worker/gencode-remote

13 lines
409 B
Bash
Executable file

#!/bin/sh
# Designed for Debian/systemd - make sure to adapt when you add support for other
# distributions/OSs.
name=$__object_id
synapse_conf_dir='/etc/matrix-synapse'
synapse_workers_conf_dir="$synapse_conf_dir/workers"
systemd_worker_service="matrix-synapse-worker@$name"
if grep -qE "^__file$synapse_workers_conf_dir/$name" "${__messages_in}"; then
echo "systemctl restart $systemd_worker_service"
fi