running systemd terminal commands in SysVinit mode?
running systemd terminal commands in SysVinit mode?
Hi, Happy May Day to those parts of the world where they celebrate.
I wanted to know how this systemd-shim thing works in MX in sysVinit mode. If I run a service like docker-desktop, will the usual systemd terminal commands eg. systemctl enable etc. work or do I have to boot in systemd mode?
I wanted to know how this systemd-shim thing works in MX in sysVinit mode. If I run a service like docker-desktop, will the usual systemd terminal commands eg. systemctl enable etc. work or do I have to boot in systemd mode?
- DukeComposed
- Posts: 1459
- Joined: Thu Mar 16, 2023 1:57 pm
Re: running systemd terminal commands in SysVinit mode?
If I sit down at an Apple machine and run "notepad.exe C:\Users\username\Desktop\my_file.txt", is that going to work?retroD0d0 wrote: Wed Apr 30, 2025 11:14 pm Hi, Happy May Day to those parts of the world where they celebrate.
I wanted to know how this systemd-shim thing works in MX in sysVinit mode. If I run a service like docker-desktop, will the usual systemd terminal commands eg. systemctl enable etc. work or do I have to boot in systemd mode?
- dolphin_oracle
- Developer
- Posts: 22486
- Joined: Sun Dec 16, 2007 12:17 pm
Re: running systemd terminal commands in SysVinit mode?
No. systemctl is nearly non-functional while running sysVinit. things like enabling or disabling, or masking and unmasking, will work, but actually starting or stopping a service will not. In addition, the application you are running will need some kind of service file or init.d script, as systemd service files are not processed by sysVinit. basically anything that requires systemd to actually be running as the init system won't work.retroD0d0 wrote: Wed Apr 30, 2025 11:14 pm Hi, Happy May Day to those parts of the world where they celebrate.
I wanted to know how this systemd-shim thing works in MX in sysVinit mode. If I run a service like docker-desktop, will the usual systemd terminal commands eg. systemctl enable etc. work or do I have to boot in systemd mode?
there is a "service" wrapper around all this that can be beneficial. for instant, to start samba (smbd), you could do
Code: Select all
service smbd start
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/
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/
Re: running systemd terminal commands in SysVinit mode?
Interesting, is this service wrapper unique to MX, can i rely on it to issue typical sysV commands to systemd apps/services?dolphin_oracle wrote: Thu May 01, 2025 7:57 am
there is a "service" wrapper around all this that can be beneficial. for instant, to start samba (smbd), you could do
on both systemd and sysVinit.Code: Select all
service smbd start
Thanks for the explanation. I guess what I wanted to better understand in detail ALL the customisations used to get systemd dependent apps/services to work in MX. I have a vague idea what the systemd-shim is doing (emulating helper functions which are otherwise native to the systemd suite) but is there more to it? like the service wrapper example above!
If anyone knows of any resource, would be glad if you could point.Thanks.
- dolphin_oracle
- Developer
- Posts: 22486
- Joined: Sun Dec 16, 2007 12:17 pm
Re: running systemd terminal commands in SysVinit mode?
retroD0d0 wrote: Thu May 01, 2025 11:53 amInteresting, is this service wrapper unique to MX, can i rely on it to issue typical sysV commands to systemd apps/services?dolphin_oracle wrote: Thu May 01, 2025 7:57 am
there is a "service" wrapper around all this that can be beneficial. for instant, to start samba (smbd), you could do
on both systemd and sysVinit.Code: Select all
service smbd start
Thanks for the explanation. I guess what I wanted to better understand in detail ALL the customisations used to get systemd dependent apps/services to work in MX. I have a vague idea what the systemd-shim is doing (emulating helper functions which are otherwise native to the systemd suite) but is there more to it? like the service wrapper example above!
If anyone knows of any resource, would be glad if you could point.Thanks.
service is not unique, at least in the debian world.
there is a little bit of a misconception here I think. systemd services do not run. the system user session management runs, but anything else requires sysVinit service files, or be started by dbus. even pipewire, which normally is started up by user-services under systemd (which sysVinit has no concept of), are autostarted at login to the desktop rather than by a service file.
the systemd-shim and its set of patches allow that stuff to coexist with sysVinit (mostly systemd-logind), as well as allow sytemd to run when its not at PID 1, which is always held by the init system.
What you'll find out there is probably pretty old, but mostly still valid. we are the only distribution out there still using it. however, the maintainer does post his stuff up on salsa.debian.org under the unit-diveristy initiative.. https://salsa.debian.org/knelsonmeister/systemd-shim there are also required patches to systemd. https://salsa.debian.org/knelsonmeister/systemd
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/
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/
Re: running systemd terminal commands in SysVinit mode?
Whoops, Sorry i confused you, I meantdolphin_oracle wrote: Thu May 01, 2025 12:11 pm
there is a little bit of a misconception here I think. systemd services do not run.
Can i rely on the service wrapper to issue typical sysV commands to systemd dependent apps/services?
- dolphin_oracle
- Developer
- Posts: 22486
- Joined: Sun Dec 16, 2007 12:17 pm
Re: running systemd terminal commands in SysVinit mode?
if you are running sysVinit, and there is an init script for what you want to run, under /etc/init.d usually, then the service wrapper will work.retroD0d0 wrote: Thu May 01, 2025 1:03 pmWhoops, Sorry i confused you, I meantdolphin_oracle wrote: Thu May 01, 2025 12:11 pm
there is a little bit of a misconception here I think. systemd services do not run.
Can i rely on the service wrapper to issue typical sysV commands to systemd dependent apps/services?
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/
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/
Re: running systemd terminal commands in SysVinit mode?
What do you mean by systemd-dependent?
1) you need systemd to be at PID1, ie running as the init system; or
2) the app simply requires the existence/installation of systemd packages on the system?
1) you need systemd to be at PID1, ie running as the init system; or
2) the app simply requires the existence/installation of systemd packages on the system?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400
Re: running systemd terminal commands in SysVinit mode?
number 2 please!asqwerth wrote: Thu May 01, 2025 1:20 pm What do you mean by systemd-dependent?
1) you need systemd to be at PID1, ie running as the init system; or
2) the app simply requires the existence/installation of systemd packages on the system?