LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 01-27-2024, 05:57 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
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.

Last edited by hazel; 01-27-2024 at 06:12 AM.
 
Old 01-27-2024, 01:52 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,140
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Which version of 23?

I am on 23.1 runit 64 bit full iso.

Perchance is libelogind0 installed anywhere on your system?

Code:
harry@shop:~
$ apt search  libelogind0 
Sorting... Done
Full Text Search... Done
dummy-logind/bookworm,bookworm 252.9-1~rc1.0antix1 all
  Dummy non-functional logind dependency package for build environments

libelogind-compat/bookworm 252.9-1~rc1.0antix1 amd64
  user, seat and session management library compatibility

libelogind0/bookworm 252.9-1~rc1.0antix1 amd64
  user, seat and session management library

libelogind0-dbgsym/bookworm 252.9-1~rc1.0antix1 amd64
  debug symbols for libelogind0
I get the same apt running warning you get, when I run the updater. I even posted about it.
https://www.antixforum.com/forums/to...pt-is-running/

I would not assume you have any active systemd services running. Just try a systemctrl command in terminal.
For us that command is sudo service start

Last edited by rokytnji; 01-27-2024 at 01:54 PM.
 
Old 01-28-2024, 12:42 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611

Original Poster
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
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?

Last edited by hazel; 01-28-2024 at 12:46 AM.
 
Old 01-28-2024, 09:27 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

Saying "a systemd/apt thing" isn't hugely descriptive.

Putting the results of the ps command into a file would have allow you to share the exact line, and someone could perhaps directly say "that's XYZ".

Have you checked crontab for any such jobs?


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...


Last edited by boughtonp; 01-28-2024 at 09:29 AM.
 
Old 01-28-2024, 09:59 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611

Original Poster
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
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

Last edited by hazel; 01-28-2024 at 10:00 AM.
 
Old 01-28-2024, 11:00 AM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,140
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Yeah. Lot's of flavors and choices. runit4 23.1 full iso is the only one that works out of the box on my Dell ll 8120 chromebook as far as hardware.

We are testing out s6 and s666 runit also. Those might be future releases

Then there is there is sysvinit releases. Which gave me no sound on my chromebook.

But work well on my conventional Desktop computer. Then there are net, core, base , full releases.

Hence why I asked. Heck. /etc/apt/preferences.d/systemd00 should have you covered.
 
Old 02-26-2024, 12:52 PM   #7
compis
Member
 
Registered: Sep 2023
Posts: 35

Rep: Reputation: 0
But why 2 Init

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 ?
 
Old 02-26-2024, 05:08 PM   #8
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,140
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Quote:
Why would another Init other than the default sysvinit be running ?
Cuz

Quote:
We are testing out
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky display gets corrupted since updating Antix-16 to Antix-17 hazel Linux - Distributions 3 12-18-2017 08:55 AM
Cron Job Not Running - Looks Like Cron Tried Noble User Linux - Newbie 7 10-26-2014 10:26 AM
Debian daily cron job won't run, but does run in cron.hourly. sandersch Linux - General 7 05-24-2012 01:50 AM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration