smartd.conf get overridden

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



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
-- 
Parnell House, Barrack Square, Ballincollig, Co. Cork, Ireland

t: + 353 21 466 0019
e: cvolker@xxxxxxxxxx

 
_______________________________________________
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