summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-09-16 19:43:07 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-09-16 19:43:07 +0000
commit0f0e808e8643720b933a3a6e9d597af10bdd4571 (patch)
tree00cca18dc209935417b7799b5fef55c4d8d70132 /sys-cluster/gearmand/files
parentRespects LDFLAGS now, see bug #337653. (diff)
downloadgentoo-2-0f0e808e8643720b933a3a6e9d597af10bdd4571.tar.gz
gentoo-2-0f0e808e8643720b933a3a6e9d597af10bdd4571.tar.bz2
gentoo-2-0f0e808e8643720b933a3a6e9d597af10bdd4571.zip
Version bump; also update init script to (re-)create run and log directories if missing, with the proper permissions.
(Portage version: 2.2_rc82/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/gearmand/files')
-rw-r--r--sys-cluster/gearmand/files/gearmand.init.d15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys-cluster/gearmand/files/gearmand.init.d b/sys-cluster/gearmand/files/gearmand.init.d
index 10ec883f8a35..50414a77d45b 100644
--- a/sys-cluster/gearmand/files/gearmand.init.d
+++ b/sys-cluster/gearmand/files/gearmand.init.d
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# Copyright 2009 Pavel Stratil, senbonzakura.eu
+# Copyright 2009-2010 Pavel Stratil, senbonzakura.eu
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -63,6 +63,19 @@ start() {
;;
esac
+
+ if [ ! -d /var/run/gearmand ] ; then
+ mkdir -p /var/run/gearmand
+ chown gearmand:nogroup /var/run/gearmand
+ chmod 0755 /var/run/gearmand
+ fi
+
+ if [ ! -d /var/log/gearmand ] ; then
+ mkdir -p /var/log/gearmand
+ chown gearmand:nogroup /var/log/gearmand
+ chmod 0755 /var/log/gearmand
+ fi
+
ebegin "Starting ${SVCNAME}"
start-stop-daemon --pidfile /var/run/gearmand/gearmand.pid --start \
--exec /usr/sbin/gearmand -- --pid-file=/var/run/gearmand/gearmand.pid \