diff options
author | Philip Balister <philip@balister.org> | 2011-06-01 11:47:13 -0400 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2011-08-01 10:33:40 -0400 |
commit | b02759814b9245095956d91b2b551e47cb794a24 (patch) | |
tree | 36c7372bebffc19833fb87726d6010f3cfc9c100 /recipes/asterisk/asterisk-1.4.39.2/init | |
parent | 3b1fa9d1f31d2b8573dba0ef1ea935366bda0497 (diff) | |
download | openembedded-b02759814b9245095956d91b2b551e47cb794a24.tar.gz |
asterisk : Create log file directory in init script.
If the log file is created on a tmpfs, the init script must the logfile
directory and chown it to the asterisk user each time asterisk starts.
Signed-off-by: Philip Balister <philip@balister.org>
Diffstat (limited to 'recipes/asterisk/asterisk-1.4.39.2/init')
-rw-r--r-- | recipes/asterisk/asterisk-1.4.39.2/init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/asterisk/asterisk-1.4.39.2/init b/recipes/asterisk/asterisk-1.4.39.2/init index d53a9a1e5e..6436113d41 100644 --- a/recipes/asterisk/asterisk-1.4.39.2/init +++ b/recipes/asterisk/asterisk-1.4.39.2/init @@ -6,6 +6,7 @@ # asterisk=/usr/sbin/asterisk pidfile=/var/run/asterisk/asterisk.pid +logdir=/var/log/asterisk asterisk_args="-npqT -U asterisk -G asterisk" test -x "$asterisk" || exit 0 @@ -13,6 +14,8 @@ test -x "$asterisk" || exit 0 case "$1" in start) echo -n "Starting Asterisk" + mkdir -p $logdir + chown asterisk:asterisk $logdir start-stop-daemon --start --quiet --exec $asterisk -- $asterisk_args echo "." ;; |