Skip to content
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

Replaced agent systemd service with official #321

Merged
merged 1 commit into from
Dec 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions templates/zabbix-agent-systemd.init.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[Unit]
Description=Zabbix Agent
After=syslog.target network.target
Documentation=man:zabbix_agentd
After=syslog.target
After=network.target

[Service]
Type=forking
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
Restart=on-abnormal
Restart=on-failure
PIDFile=<%= @pidfile %>
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes
KillMode=control-group
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so these additional security settings are pretty smart, but not upstream, I would prefer if we keep them or at least open up a ticket upstream to mention these.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target