Improve syslog detection

This already limits it to /var/log/syslog
This commit is contained in:
Manuel Rüger 2020-11-05 22:18:43 +01:00
parent 5048909587
commit 921595f75d
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ func GetBootLoader() (boot string, err error) {
}
func GetSystemLogManager() (syslog string, err error) {
out, err := exec.Command("bash", "-c", "sudo lsof | grep /var/log/syslog | cut -f1 -d' '").Output()
out, err := exec.Command("bash", "-c", "sudo lsof +D /var/log | grep /var/log/syslog | cut -f1 -d' '").Output()
if err != nil {
out, err := exec.Command("bash", "-c", "service rsyslog status").Output()
if err != nil {