initctl: primarily check for /var/log/syslog, fallback to messages
@@ -115,13 +115,13 @@ static int toggle_debug(char *arg)
static int do_log(char *svc)
{
char cmd[128];
- char *logfile = "/var/log/messages";
+ char *logfile = "/var/log/syslog";
if (!svc || !svc[0])
svc = "finit";
if (!fexist(logfile))
- logfile = "/var/log/syslog";
+ logfile = "/var/log/messages";
snprintf(cmd, sizeof(cmd), "cat %s | grep %s | tail -10", logfile, svc);
