kiss-stj

My KISS Linux repo for software I use on my computers.
git clone https://git.stjo.hn/kiss-stj
Log | Files | Refs | README | LICENSE

commit 23cf18649906a71f3800c79d0733d77e6d778681
parent 052421cee8a82691972bd2b8472a47de92460f20
Author: St John Karp <contact@stjo.hn>
Date:   Thu, 21 Jul 2022 23:18:40 -0400

svc: Undo the switch from pidof to pgrep

pidof comes with ubase so it seems to be slightly more supported.
I also don't recall the exact problem is was giving me before but it
doesn't seem to be happening with ubase pidof.

Diffstat:
Mcore/svc/build | 6------
1 file changed, 0 insertions(+), 6 deletions(-)

diff --git a/core/svc/build b/core/svc/build @@ -7,12 +7,6 @@ find . -type f -exec grep -l '/bin/' {} \+ | mv -f _ "$file" done -# pgrep works better than pidof, especially when a daemon has -# forked to the background. Neither is POSIX, so I don't suppose it matters. -sed 's/pidof -o %PPID \$BIN/pgrep ^\$SERVICE\$/' svc.d/bare.sh > _ -mv -f _ svc.d/bare.sh -chmod +x svc.d/bare.sh - # Don't start ntpd until the network is up. sed "s/if \[ -z \"\$PID\" \]/if [ -z \"\$PID\" ] \&\& (route | tail -n 1 | tr -s ' ' | cut -f 4 -d ' ' | grep -q U)/" svc.d/avail/ntpd > _ mv -f _ svc.d/avail/ntpd