Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Cannot see logs for cronie/cron when using OpenRC (Read 814 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot see logs for cronie/cron when using OpenRC

Earlier I was able to see logs at: /var/logs/crond.log when using Runit init system. Now when I have switched to OpenRC, I am not able to see any logs generated even though I have confirmed that the my cron job is running fine.

I have done a base install of artix-openrc so I am not aware if any additional package should be installed for logging to be enabled. Earlier I was using artix-runit-xfce which  had no issues in generating logs.

ls /var/log/ output:
Code: [Select]
audit  cups  dmesg  lightdm  old  pacman.log  rc.log  wtmp  Xorg.0.log  Xorg.0.log.old  Xorg.2.log

rc-status output:
Code: [Select]
Runlevel: default
 dbus                                                      [  started 00:24:55 (0) ]
 connmand                                                  [  started 00:24:55 (0) ]
 ntpd                                                      [  started 00:24:55 (0) ]
 bluetoothd                                                [  started 00:24:55 (0) ]
 cronie                                                    [  started 00:15:22 (0) ]
 cupsd                                                     [  started 00:24:55 (0) ]
 netmount                                                              [  started  ]
 lightdm                                                   [  started 00:24:55 (0) ]
 local                                                                 [  started  ]
 agetty.tty1                                               [  started 00:24:55 (0) ]
 agetty.tty6                                               [  started 00:24:55 (0) ]
 agetty.tty3                                               [  started 00:24:55 (0) ]
 agetty.tty4                                               [  started 00:24:55 (0) ]
 agetty.tty5                                               [  started 00:24:55 (0) ]
 agetty.tty2                                               [  started 00:24:55 (0) ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 avahi-daemon                                              [  started 00:24:55 (0) ]

Re: Cannot see logs for cronie/cron when using OpenRC

Reply #1
I found the issue. It was due to no system logger being installed since I had built it using base-iso. To anyone facing this, please install Syslog-ng which will act as the system logger and enable your programs to store logs properly.

Code: [Select]
pacman -S syslog-ng syslog-ng-openrc
sudo rc-update add syslog-ng default
sudo rc-service syslog-ng start