From 41295b584a682f452e911eda5f7890bb0018a1c2 Mon Sep 17 00:00:00 2001 From: Laszlo Boszormenyi Date: Sun, 26 Feb 2012 20:47:53 -0800 Subject: [PATCH] debian: /var/run/ceph -> /run/ceph /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: Signed-off-by: Laszlo Boszormenyi (GCS) --- src/init-ceph.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/init-ceph.in b/src/init-ceph.in index 2deed19d2e7df..eb58a5c0a1542 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -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" -- 2.39.5