Re: pgrep/pkill in rc script

2018-06-06 Thread Steven Shockley
On 6/4/2018 4:57 PM, Stuart Henderson wrote: pgrep uses regular expressions, so if you're matching the full string you'll need to escape the +'s. The 16-character limit doesn't apply here, that's if you're only matching on the command name. rc.d / pgrep -f match on the full process title instead

Re: pgrep/pkill in rc script

2018-06-04 Thread Stuart Henderson
On 2018-06-02, Steven Shockley wrote: > I have a 6.3 machine running four Minecraft instances (i.e. Java apps). > I recently changed the rc script for one of them to use additional Java > command-line arguments. I believe I ran into something similar to > https://marc.info/?l=openbsd-misc&m=13

pgrep/pkill in rc script

2018-06-02 Thread Steven Shockley
I have a 6.3 machine running four Minecraft instances (i.e. Java apps). I recently changed the rc script for one of them to use additional Java command-line arguments. I believe I ran into something similar to https://marc.info/?l=openbsd-misc&m=138268000201733, where pgrep would no longer mat