Atd is using 50% of cpu


#1

Hi,

I use a turris omnia 2 GB, version 3.11.1 as a standard router. Today I observed, that a process called atd is using 50% the CPU (from top). If I run the command

at -l

it list following jobs, that are running

4 Thu Dec 13 03:30:00 2018 a root
4 Thu Dec 13 03:30:00 2018 = root
5 Sat Dec 22 03:30:00 2018 a root
5 Sat Dec 22 03:30:00 2018 = root

If call

at -c 3

it shows following script:

#!/bin/sh

atrun uid=0 gid=0

mail root 0

umask 22
USER=root; export USER
SHLVL=2; export SHLVL
HOME=/root; export HOME
MAILTO=; export MAILTO
LOGNAME=root; export LOGNAME
PATH=/usr/bin:/bin:/sbin:/usr/sbin; export PATH
PWD=/root; export PWD
cd /root || {
echo ‘Execution directory inaccessible’ >&2
exit 1
}
reboot

#!/bin/sh

atrun uid=0 gid=0

mail root 0

umask 22
USER=root; export USER
SHLVL=2; export SHLVL
HOME=/root; export HOME
MAILTO=; export MAILTO
LOGNAME=root; export LOGNAME
PATH=/usr/bin:/bin:/sbin:/usr/sbin; export PATH
PWD=/root; export PWD
cd /root || {
echo ‘Execution directory inaccessible’ >&2
exit 1
}
reboot

I have no idea, what this job does, and why it is running. Does anybody has any clues regarding this?

best regards
nhok


#2

Just guessing, are those maybe zombified scheduled reboots? (issued from Foris/Luci or by pkgupdate/update.sh)? In /var/spool/cron/atspool or/var/spool/cron/atjobs should have some files while atd is running. Also syslog should have some more info. Personally i would kill those processes. With following check of /root, /tmp, /var folders if exists and are accesible (+ there is free space).