Does MX use cgmanager itself ?

Message
Author
User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Does MX use cgmanager itself ?

#1 Post by SpongeBOB »

Hi,

I see with a fresh install of MX-23.6, that cgmanager demon is running, is MX Linux use it for it self ? or is it there for user software ? (software that are installed by user)

I've tried to found the config files of cgmanager, but found nothing...

So I don't know if it currently running blank ?

Thanks.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
CharlesV
Global Moderator
Posts: 7771
Joined: Sun Jul 07, 2019 5:11 pm

Re: Does MX use cgmanager itself ?

#2 Post by CharlesV »

My understanding of cgmanager ( cgroup management daemon) is that under non systemd linux it is used. Since you didnt post your QSI, it is hard to tell if your machine is using it, but on all of my sysvinit systems it is running as a service and has configurations at

Code: Select all

/etc/init.d/cgmanager

( Where it starts from )

and then

Code: Select all

 /etc/init/cgmanager.conf

*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
dolphin_oracle
Developer
Posts: 22531
Joined: Sun Dec 16, 2007 12:17 pm

Re: Does MX use cgmanager itself ?

#3 Post by dolphin_oracle »

its a depend of systemd-shim. beyond that I can't tell you. I can tell you its problematic for sddm/KDE6.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
timkb4cq
Developer
Posts: 3619
Joined: Wed Jul 12, 2006 4:05 pm

Re: Does MX use cgmanager itself ?

#4 Post by timkb4cq »

Yes, under sysvinit cgmanager is used to interface with the kernel for process and namespaces (including containers) control
https://en.wikipedia.org/wiki/Cgroups
Systemd has its own cgroup interfaces to handle them. I can see where having cgmanager and systemd both running could result in randomly appearing undefined behavior.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Does MX use cgmanager itself ?

#5 Post by SpongeBOB »

Thank you all for your feedback.

I will disable it for now and see if it's create any instability or glitch, I'll keep the forum posted in case.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Does MX use cgmanager itself ?

#6 Post by SpongeBOB »

fyi, without cgmanager , a user (in xfce gui) can't mount a disk/volume... not shutdown the system trough ctrl+f4
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Does MX use cgmanager itself ?

#7 Post by SpongeBOB »

"funny" once disabled

Code: Select all

update-rc.d cgmanager disable
reboot
update-rc.d cgmanager defaults
reboot
wont work, cgmanager do not start anymore.... :alien:
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
siamhie
Global Moderator
Posts: 3570
Joined: Fri Aug 20, 2021 5:45 pm

Re: Does MX use cgmanager itself ?

#8 Post by siamhie »

SpongeBOB wrote: Tue Jun 17, 2025 6:24 am "funny" once disabled

Code: Select all

update-rc.d cgmanager disable
reboot
update-rc.d cgmanager defaults
reboot
wont work, cgmanager do not start anymore.... :alien:
Can you re-enable it through MX Service Manager?
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: Does MX use cgmanager itself ?

#9 Post by SpongeBOB »

@siamhie , I've tried on a fresh install.

Disabling trough GUI MX Service: ok
Re enabling trough GUI MX Service: error: Could not enable cgmanager, then second pop-up: cgmanager was enabled at boot time.
I rebooted

Code: Select all

/etc/init.d/cgmanager status
cgmanager is not running ... failed!
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
dolphin_oracle
Developer
Posts: 22531
Joined: Sun Dec 16, 2007 12:17 pm

Re: Does MX use cgmanager itself ?

#10 Post by dolphin_oracle »

I don't think disable is correct.

I usually do

Code: Select all

sudo update-rc.d cgmanager remove
sudo update-rc.d cgmanager defaults
that disable command is probably got all the symlinks changed to prevent starting.

Code: Select all

REMOVING SCRIPTS

       When invoked with the remove option, update-rc.d removes any links in the  /etc/rcrunlevel.d  directories
       to  the  script  /etc/init.d/name.   The  script  must have been deleted already.  If the script is still
       present then update-rc.d aborts with an error message.

       update-rc.d is usually called from a package's post-removal script when that script is  given  the  purge
       argument.   Any  files  in  the  /etc/rcrunlevel.d  directories that are not symbolic links to the script
       /etc/init.d/name will be left untouched.

DISABLING INIT SCRIPT START LINKS

       When run with the disable [ S|2|3|4|5 ] options, update-rc.d modifies existing  runlevel  links  for  the
       script  /etc/init.d/name  by  renaming  start  links  to  stop  links with a sequence number equal to the
       difference of 100 minus the original sequence number.

       When run with the enable [ S|2|3|4|5 ] options, update-rc.d modifies  existing  runlevel  links  for  the
       script  /etc/init.d/name  by  renaming  stop  links  to  start  links with a sequence number equal to the
       positive difference of current sequence number minus 100, thus returning to the original sequence  number
       that the script had been installed with before disabling it.

       Both  of  these  options only operate on start runlevel links of S, 2, 3, 4 or 5. If no start runlevel is
       specified after the disable or enable keywords, the script will attempt to  modify  links  in  all  start
       runlevels.

OPTIONS

       -n     Don't do anything, just show what we would do.

       -f     Force removal of symlinks even if /etc/init.d/name still exists.

EXAMPLES

       Insert links using the defaults:
          update-rc.d foobar defaults
       The equivalent dependency header would have start and stop
       dependencies on $remote_fs and $syslog, and start in
       runlevels 2-5 and stop in runlevels 0, 1 and 6.
       Remove all links for a script (assuming foobar has been deleted already):
          update-rc.d foobar remove
       Example of disabling a service:
          update-rc.d foobar disable
       Example of a command for installing a system initialization-and-shutdown script:
          update-rc.d foobar defaults
       Example of a command for disabling a system initialization-and-shutdown script:
          update-rc.d foobar disable
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Post Reply

Return to “General”