summarylogtreecommitdiffstats
path: root/sensu-agent.service
blob: 39bc47e32159371981e049370718dcb1029ccab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=The Sensu Agent process.
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=sensu
Group=sensu
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/sensu-agent
EnvironmentFile=-/etc/sysconfig/sensu-agent
LimitNOFILE=65535
ExecStart=/usr/bin/sensu-agent start -c /etc/sensu/agent.yml
Restart=always
WorkingDirectory=/

[Install]
WantedBy=multi-user.target