[bin] add spawn-once helper script
This commit is contained in:
parent
0d956b1b55
commit
ae4a14ebde
4
home/bin/spawn-once
Executable file
4
home/bin/spawn-once
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
if ! ps cx|grep "$1\$" >> /dev/null; then
|
||||
exec $@
|
||||
fi
|
Reference in a new issue