rc scripting trouble with quotes

RW rwmaillists at googlemail.com
Tue Jun 7 17:20:05 UTC 2016


On Tue, 7 Jun 2016 14:04:27 +0200
Murk Fletcher wrote:

> Hi!
> 
> How do I access a variable inside quotes? Right now I'm having some
> difficulties:
> 
> stop_cmd="cd ${myapp} && \
>   ${myapp} stop && \
>   kill -9 `cat ${myapp}/tmp/pids/example.pid`"

Are you sure you really need to do this? Stopping daemons is a basic
part of what rc.subr does.


More information about the freebsd-questions mailing list