rework server-side daemon to be reloadable via ssh

This commit is contained in:
りき萌 2024-02-03 20:03:58 +01:00
parent 5f86f4cee7
commit 0191ce9f70
8 changed files with 38 additions and 39 deletions

3
admin/daemon/common.bash Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
reload_fifo="/tmp/treehouse_reload.fifo"

5
admin/daemon/reload.bash Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
source "${BASH_SOURCE%/*}/common.bash"
echo "reload" > "$reload_fifo"