Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the old clamav tests to check process with systemctl
This extra bit of code calls `systemctl` to see if the clam processes are running, rather than checking the pidfile. This command exits zero if the service is running. If systemctl is unsuccessful for *any* reason, then fall back on checking the pidfile. Starting/stopping the processes still works via the sysvinit compatibility layer. If systemd is not running, the systemctl command displays Failed to get D-Bus connection: Unknown error -1 and exits non-zero, so we continue on to the pidfile check. This closes #49.
- Loading branch information
Patrick J Cherry
committed
Jul 7, 2017
1 parent
283b60a
commit fe97535
Showing
2 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters