View | Details | Raw Unified | Return to bug 31729
Collapse All | Expand All

(-)a/debian/scripts/koha-watcher (-3 / +2 lines)
Lines 1-4 Link Here
1
#!/bin/dash
1
#!/bin/sh
2
#
2
#
3
# koha-watcher -- Restart starman when a file is modified.
3
# koha-watcher -- Restart starman when a file is modified.
4
# Copyright 2022  Mason James
4
# Copyright 2022  Mason James
Lines 75-81 start_reload_loop() { Link Here
75
    while true; do
75
    while true; do
76
        # restart, if logfile exists
76
        # restart, if logfile exists
77
        if [ -e "$tmpfile" ]; then
77
        if [ -e "$tmpfile" ]; then
78
            kill -s HUP $(cat /var/run/koha/"$instance"/plack.pid)
78
            kill -s HUP $(cat "/var/run/koha/{$instance}/plack.pid")
79
            rm "$tmpfile"
79
            rm "$tmpfile"
80
        fi
80
        fi
81
        sleep $sec
81
        sleep $sec
82
- 

Return to bug 31729