Skip to content

Commit

Permalink
Update clamav-clamonacc.service.in
Browse files Browse the repository at this point in the history
Allowing the service to shutdown instead of ignoring SIGTERM and waiting for 1m30s, which is extremely irritating and blocking the shutdown of the machine
  • Loading branch information
ThibaultDECO authored and micahsnyder committed Apr 26, 2024
1 parent 3cfad8a commit 6779c5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clamonacc/clamav-clamonacc.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Type=simple
User=root
ExecStartPre=/bin/bash -c "while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done"
ExecStart=@prefix@/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
ExecStop=/bin/kill -SIGKILL $MAINPID

[Install]
WantedBy=multi-user.target

0 comments on commit 6779c5d

Please sign in to comment.