summaryrefslogtreecommitdiff
path: root/community/mfs/mfs.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/mfs/mfs.install
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/mfs/mfs.install')
-rw-r--r--community/mfs/mfs.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/mfs/mfs.install b/community/mfs/mfs.install
new file mode 100644
index 000000000..433595cb0
--- /dev/null
+++ b/community/mfs/mfs.install
@@ -0,0 +1,24 @@
+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 'Systemd is supported for starting services at boot.'
+ echo
+}
+
+# vim:set ts=2 sw=2 et: