-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd control #895
base: master
Are you sure you want to change the base?
Systemd control #895
Changes from 24 commits
63fb433
56d40d3
42a7434
58bafaa
b425d0a
358811a
da1cfee
c243cd9
5900c89
fccfb6b
23662c5
249ac8d
07e0c4f
314ed7f
2e2dccf
3da96bf
ea84264
0c1817f
79fd4e1
3f2e6dd
2f4d859
e387076
0a09265
309d5e2
df44614
0bc9ad2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[Unit] | ||
Description=OSSEC Execd | ||
PartOf=ossec-agent.target | ||
Before=ossec-ossec-syscheckd.service ossec-agentd.service ossec-logcollector.service | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo here ? should be ossec-syscheckd There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for spotting those mistakes. They should be corrected now. |
||
|
||
[Service] | ||
EnvironmentFile=/etc/ossec-init.conf | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
[Unit] | ||
Description=OSSEC Agentless | ||
PartOf=ossec-server.target | ||
After=ossec-analysisd.service ossec-execd.service ossec-logcollector.service ossec-maild.service ossec-monitord.service ossec-remoted.service ossec-syscheckd.service | ||
ConditionPathExists=/var/ossec/etc/.agentlessd | ||
|
||
[Service] | ||
EnvironmentFile=/etc/ossec-init.conf | ||
Environment=DIRECTORY=/var/ossec | ||
|
||
ExecStartPre=/usr/bin/env ${DIRECTORY}/bin/ossec-agentlessd -t | ||
ExecStart=/usr/bin/env ${DIRECTORY}/bin/ossec-agentlessd -f | ||
ExecStart=/usr/bin/env ${DIRECTORY}/bin/ossec-agentlessd -f |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
[Unit] | ||
Description=OSSEC Syslog client | ||
PartOf=ossec-server.target | ||
After=ossec-analysisd.service ossec-dbd.service ossec-execd.service ossec-logcollector.service ossec-maild.service ossec-monitord.service ossec-remoted.service ossec-syscheckd.service | ||
ConditionPathExists=/var/ossec/etc/.csyslogd | ||
|
||
[Service] | ||
EnvironmentFile=/etc/ossec-init.conf | ||
Environment=DIRECTORY=/var/ossec | ||
|
||
ExecStartPre=/usr/bin/env ${DIRECTORY}/bin/ossec-csyslogd -t | ||
ExecStart=/usr/bin/env ${DIRECTORY}/bin/ossec-csyslogd -f | ||
ExecStart=/usr/bin/env ${DIRECTORY}/bin/ossec-csyslogd -f |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[Unit] | ||
Description=OSSEC remoted | ||
PartOf=ossec-server.target | ||
After=ossec-maild.service ossec-execd.service ossec-analysisd.service ossec-logcollector | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ossec-logcollector.service |
||
Before=ossec-agentless.service ossec-csyslog.service ossec-dbd.service ossec-monitord.service ossec-syscheckd.service | ||
|
||
[Service] | ||
Type=forking | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[Unit] | ||
Description=OSSEC syscheckd | ||
PartOf=ossec-server.target | ||
After=ossec-maild.service ossec-execd.service ossec-analysisd.service ossec-remoted.service | ||
Before=ossec-agentless.service ossec-csyslog.service ossec-dbd.service ossec-monitord.service ossec-remoted.service | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ossec-remoted has been in "After" section |
||
|
||
[Service] | ||
EnvironmentFile=/etc/ossec-init.conf | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fi