Re: smartd.conf get overridden

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am Donnerstag, den 06.12.2007, 02:20 -0800 schrieb Christian Volker:
> Yohoo!
> 
> I have some issues with the smartd in CentOS5/x64
> I edited the /etc/smartd.conf for my needs and restarted the smartd with
> "service smartd restart". But the start script is overriding my file. I
> checked it and saw the following lines:
> 
> ---------------/etc/init.d/smartd------------
> case "$1" in
>     start | reload | restart)
> GEN_CONF="*SMARTD*AUTOGENERATED*"
> [ ! -f /etc/smartd.conf ] || read DUMMY GEN_CONF DUMMY </etc/smartd.conf \
> && [ "$GEN_CONF" == "*SMARTD*AUTOGENERATED*" ] \
> && smartd-conf.py 2>/dev/null >/etc/smartd.conf.new-autogenerated \
> && mv -f /etc/smartd.conf.new-autogenerated /etc/smartd.conf
>     ;;
> esac
> ---------------/etc/init.d/smartd------------
> 
> So how can I prevent my file beeeing overriden without editing this script
> (which will probably get lots the next update)?
> 
> ------/etc/sysctl/smartmontools---------
> # command line options for smartd
> smartd_opts="-q never"
> ----------------------------------------
> 
> Any ideas?
> 
> Christian Volker
> 
> Technical Support Engineer

Hello,

the first three lines of my /etc/smartd.conf are:
"# *SMARTD*AUTOGENERATED* /etc/smartd.conf
# Remove the line above if you have edited the file and you do not want
# it to be overwritten on the next smartd startup."

Udo




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux