You are not logged in.

#1 2014-07-05 14:06:30

tigrezno
Member
Registered: 2004-05-10
Posts: 64

[SOLVED] "journalctl -u crond" doesn't work

I've tried all these methods but can't understand why only "_COMM" works.

[root@alarmpi ~]# journalctl -u crond
-- Logs begin at Sat 2014-07-05 14:49:30 WEST, end at Sat 2014-07-05 15:01:02 WEST. --

[root@alarmpi ~]# journalctl -u crond.service
-- Logs begin at Sat 2014-07-05 14:49:30 WEST, end at Sat 2014-07-05 15:01:02 WEST. --

[root@alarmpi ~]# journalctl _EXE=crond      
-- Logs begin at Sat 2014-07-05 14:49:30 WEST, end at Sat 2014-07-05 15:01:02 WEST. --

[root@alarmpi ~]# journalctl _COMM=crond
-- Logs begin at Sat 2014-07-05 14:49:30 WEST, end at Sat 2014-07-05 15:01:02 WEST. --
Jul 05 14:50:01 alarmpi crond[287]: pam_unix(crond:session): session opened for user tigre by (uid=0)
Jul 05 14:50:01 alarmpi CROND[287]: pam_unix(crond:session): session closed for user tigre
Jul 05 15:00:01 alarmpi crond[418]: pam_unix(crond:session): session opened for user tigre by (uid=0)

Isn't "crond.service" a systemd unit? Isn't _EXE an alias for _COMM?

I'm a bit lost.

Last edited by tigrezno (2014-07-05 20:17:08)

Offline

#2 2014-07-05 15:25:45

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] "journalctl -u crond" doesn't work

I don't know about archlinux ARM, but in Archlinux, our cron package is cronie, and the service is actually cronie.service.

Offline

#3 2014-07-05 20:16:54

tigrezno
Member
Registered: 2004-05-10
Posts: 64

Re: [SOLVED] "journalctl -u crond" doesn't work

WonderWoofy wrote:

I don't know about archlinux ARM, but in Archlinux, our cron package is cronie, and the service is actually cronie.service.

that was the problem! I was using crond because that's what I saw in the process list.

Thank you!

Offline

Board footer

Powered by FluxBB