From a3669c04838b48b6891b2ffc4b296fa515f8174f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Aug 2012 00:02:33 +0000 Subject: Tue Aug 21 00:02:33 UTC 2012 --- community/mfs/mfs.install | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 community/mfs/mfs.install (limited to 'community/mfs/mfs.install') diff --git a/community/mfs/mfs.install b/community/mfs/mfs.install new file mode 100644 index 000000000..906932aaa --- /dev/null +++ b/community/mfs/mfs.install @@ -0,0 +1,25 @@ +post_upgrade() { + # Moving the old configuration to the new location at /etc/mfs/ + for fn in chunkserver hdd mount metalogger master exports topology; do + if [ -e /etc/mfs$fn.cfg -a ! -e /etc/mfs/mfs$fn.cfg ]; then + echo "Moving /etc/mfs$fn.cfg to /etc/mfs/mfs$fn.cfg" + mv /etc/mfs$fn.cfg /etc/mfs/mfs$fn.cfg + fi + done +} + +post_install() { + post_upgrade + echo + echo 'For configuring MooseFS, the .cfg.dist files in /etc/mfs can' + echo 'be used as a basis for writing the corresponding .cfg files.' + echo + echo 'To troubleshoot a service, like "mfschunkserver", just running' + echo '"/usr/bin/mfschunkserver start" can be helpful.' + echo + echo '"systemctl enable mfschunkserver" can be used to enable a service' + echo "at boot, if you're using systemd." + echo +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf