Why does my Antix-23 install have a systemd apt job running under cron?
antiX / MX LinuxThis forum is for the discussion of antiX and MX 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.
Why does my Antix-23 install have a systemd apt job running under cron?
I booted AntiX this morning, selected software updater and was told that I couldn't update because apt was already running. So I tried "ps aux" and sure enough, there was a systemd/apt thing running as a cron job. A few minutes later, it was gone and I was able to do my update.
What's going on? I thought AntiX didn't use any part of systemd.
I didn't even notice that there were multiple flavours! I don't know which flavour this is but it definitely boots with sysvinit. That's why it seems so odd to me that there should be systemd jobs running too.
Edit: Just checked your other post. Yes, that's exactly what happened to me, except that I didn't then try to do it from the terminal. Instead I waited for a couple of minutes and then ran the graphical updater. What I would like to know is what was that job that I saw running in ps?
Otherwise, this command (as root) identifies any path involving both "systemd" and "apt": "find / -ipath 'systemd*apt' -o -ipath 'apt*systemd'"
On a Live AntiX 22 system, it returns no results.
This command identifies any packages with systemd in their name: "dpkg-query --list '*systemd*'"
On the same above system, it shows three uninstalled items: "libpam-systemd", "systemd", "systemd-sysv".
This command looks in the four main bin directories for files containing "systemd", and identifies the owning package: "dpkg-query --search {/usr,}/{s,}bin/*systemd*"
Running on the above system, this command lists init-system-helpers as owning two files in /usr/bin - one of which is "deb-systemd-helper, a script that enables systemd unit files without depending on a running systemd" - and may or not have been what you saw...
You're right. I should have been more precise. Next time I do an AntiX update (which will probably be next Saturday) I shall try to duplicate the error and provide more info.
Digging around in AntiX's crontab directories just now, I found a file called apt-compat in cron.daily containing this code:
Code:
# run daily job
exec /usr/lib/apt/apt.systemd.daily
That script name looks familiar. I think it is the one I saw in the ps listing. But the weird thing is that I can't now find this particular script in /usr/lib/apt:
Code:
$ ls ../usr/lib/apt
apt-helper methods planners solvers
A Linux distribution only need one Init system. the ability to choose is fine but once the choice is made you should only be running with one Init system. Why would another Init other than the default sysvinit be running ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.