Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rsyslog
Commits
99115ecf
Commit
99115ecf
authored
Apr 17, 2013
by
Joshua Timberman
Browse files
Merge pull request #18 from tas50/COOK-2540
Cook 2540: Stop syslog when on RHEL versions below 6
parents
0df36953
b01c4e1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
99115ecf
#
# Cookbook Name:: rsyslog
# Attributes::
rsyslog
# Attributes::
default
#
# Copyright 2009, Opscode, Inc.
#
...
...
recipes/default.rb
View file @
99115ecf
...
...
@@ -45,6 +45,13 @@ template "/etc/rsyslog.d/50-default.conf" do
notifies
:restart
,
"service[
#{
node
[
'rsyslog'
][
'service_name'
]
}
]"
end
# syslog needs to be stopped before rsyslog can be started on RHEL versions before 6.0
if
platform_family?
(
'rhel'
)
&&
node
[
'platform_version'
].
to_i
<
6
service
"syslog"
do
action
[
:stop
,
:disable
]
end
end
service
node
[
'rsyslog'
][
'service_name'
]
do
supports
:restart
=>
true
,
:reload
=>
true
,
:status
=>
true
action
[
:enable
,
:start
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment