Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Raid
(view source)
Revision as of 11:10, 22 December 2013
115 bytes added
,
11:10, 22 December 2013
→Receive periodic check of Raid by mail
Line 236:
Line 236:
nano /etc/cron.weekly/raid-status
nano /etc/cron.weekly/raid-status
+
+
You have to change the variable '''DEST="stephane@your-domaine-name.org"''' to the mail you decide to use.
#!/bin/sh
#!/bin/sh
Line 249:
Line 251:
[ -x $MDADM ] || exit 0 # package may be removed but not purged
[ -x $MDADM ] || exit 0 # package may be removed but not purged
−
DEST="stephane@your-domaine-name.org"
+
'''
DEST="stephane@your-domaine-name.org"
'''
exec $MDADM --detail /dev/md1 /dev/md2 |mail -s "RAID status SME Server" $DEST
exec $MDADM --detail /dev/md1 /dev/md2 |mail -s "RAID status SME Server" $DEST
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search