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 | |
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>
-rw-r--r-- | recipes/asterisk/asterisk-1.4.39.2/init | 3 | ||||
-rw-r--r-- | recipes/asterisk/asterisk_1.4.39.2.bb | 1 |
2 files changed, 4 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 "." ;; diff --git a/recipes/asterisk/asterisk_1.4.39.2.bb b/recipes/asterisk/asterisk_1.4.39.2.bb index 90877c6070..41cb93f604 100644 --- a/recipes/asterisk/asterisk_1.4.39.2.bb +++ b/recipes/asterisk/asterisk_1.4.39.2.bb @@ -7,6 +7,7 @@ PRIORITY = "optional" SECTION = "console/telephony" DEPENDS = "speex readline zlib openssl curl popt gnutls sqlite libogg libvorbis" #RRECOMMENDS_${PN} = "logrotate" +PR = "r1" SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-${PV}.tar.gz \ # file://sounds.xml.patch \ |