[bin] add spawn-once helper script

This commit is contained in:
Simon Bruder 2019-06-06 21:02:27 +00:00
parent 0d956b1b55
commit ae4a14ebde
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

4
home/bin/spawn-once Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
if ! ps cx|grep "$1\$" >> /dev/null; then
exec $@
fi