Searching...
26/2/12

Cài đặt thông báo qua email khi YUM update

06:33


Bước 1: Sửa file /etc/yum/yum-updatesd.conf thêm các giá trị sau:
emit_via = email
# who to send the email to:
email_to = admin@example.com
# who send the notifications
email_from = adm@staff.example.com

Sau khi thêm file yum-updatesd.conf sẽ có nội dung:
[main]
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600

# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email
email_to = admin@example.com


# who send the notifications
email_from = adm@staff.example.com
#
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes

# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no


Bước 2: Restart lại yum-updatesd service
/etc/init.d/yum-updatesd restart

-- Hết --

0 comments:

Đăng nhận xét

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
Bạn phải thêm ít nhất 1 khoảng cách trước khi thêm biểu tượng cươi vào bình luận.