-
Notifications
You must be signed in to change notification settings - Fork 44
/
cb-event-forwarder.service
16 lines (14 loc) · 824 Bytes
/
cb-event-forwarder.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=CB EDR Event Forwarder
After=network.target
[Service]
Type=simple
ExecStartPre=/bin/bash -c /usr/share/cb/integrations/event-forwarder/cb-edr-fix-permissions.sh
ExecStartPre=/bin/sh -c 'exec /usr/share/cb/integrations/event-forwarder/cb-event-forwarder -check /etc/cb/integrations/event-forwarder/cb-event-forwarder.conf &> /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.startup.log'
ExecStart=/bin/sh -c 'exec /usr/share/cb/integrations/event-forwarder/cb-event-forwarder -pid-file=/run/cb/integrations/cb-event-forwarder/cb-event-forwarder.pid /etc/cb/integrations/event-forwarder/cb-event-forwarder.conf'
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/cb/integrations/cb-event-forwarder/cb-event-forwarder.pid
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target