summaryrefslogtreecommitdiff
path: root/community/mfs/mfs.install
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-09-18 23:41:48 -0500
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-09-18 23:41:48 -0500
commitfa95bb04dbbc63d07b1f84fb8ce5272085097eb7 (patch)
tree09eb51305956e84dfb79aa89f5b99e595371c54d /community/mfs/mfs.install
parent6eefbbf4300e680dc93487c11a1ae35ee8299f06 (diff)
parent5a05be089c68617c86c9c555e63f2b0314451ebf (diff)
Merge branch 'master' of gitpar:abslibre-mips64el
Diffstat (limited to 'community/mfs/mfs.install')
-rw-r--r--community/mfs/mfs.install25
1 files changed, 25 insertions, 0 deletions
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: