]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: /var/run/ceph -> /run/ceph
authorLaszlo Boszormenyi <gcs@debian.hu>
Mon, 27 Feb 2012 04:47:53 +0000 (20:47 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 27 Feb 2012 04:47:53 +0000 (20:47 -0800)
/run/ceph should exists for creating UNIX domain sockets
ceph uses UNIX domain sockets for internal communication. Create their
directory on startup as /run is on a virtual filesystem.

Last-Update: <2012-02-26>
Bug-Debian: http://bugs.debian.org/660238
Forwarded: <ceph-devel@vger.kernel.org>
Signed-off-by: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
src/init-ceph.in

index 2deed19d2e7df59c80c673d1a22a7059fa542a0e..eb58a5c0a1542aca4fccbeb19423a492f5046ae1 100644 (file)
@@ -12,6 +12,8 @@
 # Description:       Enable Ceph distributed file system services.
 ### END INIT INFO
 
+RUN_DIR=/run/ceph
+
 # if we start up as ./mkcephfs, assume everything else is in the
 # current directory too.
 if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
@@ -173,7 +175,7 @@ for name in $what; do
 
     check_host || continue
 
-    get_conf pid_file "/var/run/ceph/$type.$id.pid" "pid file"
+    get_conf pid_file "$RUN_DIR/$type.$id.pid" "pid file"
     [ -n "$pid_file" ] && do_cmd "mkdir -p "`dirname $pid_file`
 
     get_conf log_dir "" "log dir"
@@ -266,6 +268,7 @@ for name in $what; do
                do_root_cmd "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $btrfs_opt $first_dev $btrfs_path"
            fi
            echo Starting Ceph $name on $host...
+           mkdir -p $RUN_DIR
            get_conf pre_start_eval "" "pre start eval"
            [ -n "$pre_start_eval" ] && $pre_start_eval
            get_conf pre_start "" "pre start command"