Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] Updated freeswitch.initd to include missing path switches.

From: Der Tiger <der.tiger.alpine_at_arcor.de>
Date: Sun, 13 Apr 2014 12:48:41 +0200

Natanael,


On 2014-04-13 09:59, Natanael Copa wrote:
> On Sun, 13 Apr 2014 09:32:55 +0200
> Der Tiger <der.tiger.alpine_at_arcor.de> wrote:
>
>> In order to make those switches adjustable by the user, I suggest to set
>> them in /etc/conf.d/freeswitch utilizing the ${OPTS} variable in the
>> init.d script rather than make them hard-coded in /etc/init.d/freeswitch
>> itself, because some folks my want to store recordings on a different
>> drive or use their own set of grammar and voice files.
> Yes, and it will break things for those who actually have things stored
> other location.
I don't see why pre-setting ${OPTS} in /etc/conf.d/freeswitch would
break anything for anyone. Anyway, introducing separate variables for
each switch, as you suggested, is certainly the better way to go.

> Maybe we should introduce variables with sane values:
>
> -recordings ${recordings_dir:-/var/lib/freeswitch/recordings} \
> -grammar ${grammar_dir:-/var/lib/freeswitch/grammar} \
> -sounds ${sounds_dir:-/usr/share/freeswitch/sounds} \
> -storage ${storage_dir:-/var/lib/freeswitch} \
> ${OPTS}
>
Regards, Tiger


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Apr 13 2014 - 12:48:41 UTC