Changes

From SME Server
Jump to navigationJump to search
122 bytes added ,  11:15, 22 December 2013
Line 235: Line 235:  
So the purpose is to have a routine which sent mail to the user of your choice each week.
 
So the purpose is to have a routine which sent mail to the user of your choice each week.
   −
  nano /etc/cron.weekly/raid-status
+
  nano /etc/cron.weekly/raid-status.sh
    
You have to change the variable '''DEST="stephane@your-domaine-name.org"''' to the mail you decide to use.
 
You have to change the variable '''DEST="stephane@your-domaine-name.org"''' to the mail you decide to use.
Line 255: Line 255:     
save by ctrl+x
 
save by ctrl+x
  chmod +x /etc/cron.weekly/raid-status
+
  chmod +x /etc/cron.weekly/raid-status.sh
    
each sunday a 4h00 AM you will receive a mail which looks to this :  
 
each sunday a 4h00 AM you will receive a mail which looks to this :  
Line 307: Line 307:  
       0      8        2        0      active sync  /dev/sda2
 
       0      8        2        0      active sync  /dev/sda2
 
       1      8      18        1      active sync  /dev/sdb2
 
       1      8      18        1      active sync  /dev/sdb2
 +
 +
If you want to test the message sent without waiting the next sunday, you can do
 +
/etc/cron.weekly/raid-status.sh
    
====nospare====
 
====nospare====

Navigation menu