PHP 7.4.33
Preview: syslog-cleanup.sh Size: 407 B
//lib/dracut/modules.d/98syslog/syslog-cleanup.sh

#!/bin/sh

# Just cleans up a previously started syslogd

type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh

if [ -f /tmp/syslog.server ]; then
    read syslogtype < /tmp/syslog.type
    if command -v "${syslogtype}-stop" >/dev/null; then
        ${syslogtype}-stop
    else
        warn "syslog-cleanup: Could not find script to stop syslog of type \"$syslogtype\". Syslog will not be stopped."
    fi
fi

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.14 KB lrwxr-xr-x 2024-04-06 13:22:07
Edit Download
1.13 KB lrwxr-xr-x 2018-10-08 13:38:33
Edit Download
833 B lrw-r--r-- 2024-04-06 13:22:07
Edit Download
820 B lrw-r--r-- 2018-10-08 13:38:33
Edit Download
1.20 KB lrwxr-xr-x 2018-10-08 13:38:33
Edit Download
286 B lrwxr-xr-x 2018-10-08 13:38:33
Edit Download
407 B lrwxr-xr-x 2018-10-08 13:38:33
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).