DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That clamscan line is just the Description, not relevant, not executed. Actually would be nice to have a correct description instead of that.
From the other hand you need to check what's wrong with that /run/systemd/generator/cron-tmick-tmick-0.sh. I guess you can use journalctl to get additional info about it. And also you can try to execute it manually to see what's going on. But what you posted is not enough to go further.
from a terminal (yes, I should of thought of that a long time ago) and it runs fine. I'm going to try launching the script next (after clam completes the scan) and see if it errors out.
So it appears the script is just the command I just ran. However there are two other related files: cron-tmick-tmick-0.service and cron-tmick-tmick-0.timer.
From cron-tmick-tmick-0.service
Yes, I pasted the text from the cron-tmick-tmick-0.sh
The other two I posted was from the cron-tmick-tmick-0.service and cron-tmick-tmick-0.timer files in /run/systemd/generator/
I did notice a extra space in the path for
Yes, I pasted the text from the cron-tmick-tmick-0.sh
The other two I posted was from the cron-tmick-tmick-0.service and cron-tmick-tmick-0.timer files in /run/systemd/generator/
I did notice a extra space in the path for
that space is required, /bin/sh is the shell interpreter to run your script, which is actually /run/systemd/generator/cron-tmick-tmick-0.sh
But I'm not really sure that path is valid, your script cannot be located inside /run (at least I think).
I don't see anything obvious and if the scan seems to work I may not worry about it to much. You can always create a separate timer from cron to run your own script as an alternative.
Since bookworm is for testing I might check the bug tracking system to see if there are any for systemd-cron. You can also send in a bug report.
I assume that systemd-cron generator creates a new script at boot time in /run but
I might have to install bookworm in a VM to play with it.
Well the path is valid, I can follow it to the shell script in the /run directory.
I've looked for and filed a bug report for this, it just hasn't had much in the response department.
I'm not sure if it is working. If I go into /home/tmick/.clamtk/history the last file is dated Sept 30,2022.
/var/log/clamav and /var/log/apt-cron don't have any errors and Journald / dmesg doesn't show anything either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.