Skip to content

Commit

Permalink
Feature: Add restart configuration to service
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexoplon committed May 3, 2024
1 parent c6d320e commit 6bd6284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sysmon.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
[Unit]
Description=Sysmon event logger
After=syslog.service
StartLimitBurst=5
StartLimitIntervalSec=10

[Service]
Type=forking
User=root
WorkingDirectory=/opt/sysmon
ExecStart=/opt/sysmon/sysmon -i /opt/sysmon/config.xml -service
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

0 comments on commit 6bd6284

Please sign in to comment.