Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
elogind and cron jobs [SOLDVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Tue Apr 28, 2020 8:12 am    Post subject: elogind and cron jobs [SOLDVED] Reply with quote

Hi

Since switching to elogind as required, it seems like my cron jobs which are not run as root user, no longer run.

Is this a known issue?

If I look in /var/log/messages, then I see things like:

Code:

Apr 28 09:01:01 kla CROND[18228]: (root) CMD (run-parts /etc/cron.hourly)
Apr 28 09:02:01 kla kernel: crond[18260]: segfault at 6236 ip 0000000000006236 sp 00007ffdcf0d2818 error 14 in crond[56057189b000+e000]
Apr 28 09:10:01 kla CROND[18393]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 09:20:01 kla CROND[18558]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 09:30:01 kla CROND[19231]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 09:40:01 kla CROND[19405]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 09:50:01 kla CROND[19659]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 09:59:01 kla CROND[19980]: (root) CMD (   rm -f /var/spool/cron/lastrun/cron.hourly)
Apr 28 10:00:01 kla CROND[19993]: (root) CMD (   test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Apr 28 10:00:01 kla run-crons[19997]: (root) CMD (/etc/cron.hourly/vnstat)
Apr 28 10:01:01 kla CROND[20047]: (root) CMD (run-parts /etc/cron.hourly)
Apr 28 10:02:01 kla kernel: crond[20068]: segfault at 6236 ip 0000000000006236 sp 00007ffdcf0d2818 error 14 in crond[56057189b000+e000]


The job at hh:02 is:
# monitor the disks and advise if problems
2 * * * * ian /home/ian/monitor-disks.sh


Does anyone have any ideas?

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram


Last edited by iandoug on Sat May 16, 2020 5:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Sat May 16, 2020 5:49 pm    Post subject: Reply with quote

I had to reboot the system (it hung, believe it or not) and after reboot things works normally again.

Odd :-)

Marking as solved.

Cheers, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum