equivalent of chkconfig

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Aug 18 10:36:17 UTC 2015


On Tue, 18 Aug 2015 05:40:23 -0400, Tom H wrote:
>It's a bit messy, SOMETIMES.

Hi Tom,

I'm aware that it wasn't you who blamed me for spreading "unfounded
FUD", it was Oliver and at the same time he mentioned backwards
compatibility, inter-distro-compatibility, the feature that one command
does it all.

AFAIK Ubuntu's systemd implementation doesn't provide any of those
three advantages, it brakes all three advantages [1].

The wrapper-workaround-approach leads to misinformation [1].

The mess could be avoided without much work, e.g. for

http://packages.ubuntu.com/trusty/all/rtirq-init/filelist

The Ubuntu maintainer just needs to correct the location and add a
service file, but even if you would provide the service file and
corrected file locations for the maintainer, you can't contribute to
Ubuntu. It's recommended to get in contact with Debian maintainers.



[1]
For example:

Imagine you'll maintain your install, using a workflow that can be used
for a clean systemd install.

[weremouse at moonstudio ~]$ systemctl list-unit-files | grep alice
alice.service                          enabled 
[weremouse at moonstudio ~]$ systemctl list-unit-files | grep rtirq
[weremouse at moonstudio ~]$



Looks like rtirq isn't enabled, but de facto it's enabled.

[weremouse at moonstudio ~]$ systemctl list-units | grep alice
alice.service
loaded active exited    Alice PPPoE
[weremouse at moonstudio ~]$ systemctl list-units | grep rtirq
rtirq.service
loaded active exited    LSB: Realtime IRQ thread tunning.
[weremouse at moonstudio ~]$ systemctl status alice | grep active Active:
active (exited) since Mon 2015-08-17 22:55:32 CEST; 13h ago
[weremouse at moonstudio ~]$ systemctl status rtirq | grep active Active:
active (exited) since Mon 2015-08-17 22:55:33 CEST; 13h ago



Regarding backwards compatibility, there is no backwards compatibility
when using the service wrapper.
Please correct me when I'm mistaken, didn't the service wrapper in the
past do the same as /etc/init.d/foo status does?

[weremouse at moonstudio ~]$ service rtirq status
● rtirq.service - LSB: Realtime IRQ thread tunning.
   Loaded: loaded (/etc/init.d/rtirq)
   Active: active (exited) since Mon 2015-08-17 22:55:33 CEST; 13h ago
     Docs: man:systemd-sysv-generator(8)

Warning: Journal has been rotated since unit was started. Log output is
incomplete or unavailable.

[weremouse at moonstudio ~]$ /etc/init.d/rtirq status

  PID CLS RTPRIO  NI PRI %CPU STAT COMMAND	
  385 FF      90   - 130  0.0 S    irq/18-snd_hdsp	
  387 FF      85   - 125  0.0 S    irq/20-snd_ice1	
  388 FF      84   - 124  0.0 S    irq/21-snd_ice1	
   35 FF      50   -  90  0.0 S    irq/9-acpi	
   60 FF      50   -  90  0.0 S    irq/19-ehci_hcd	
   61 FF      50   -  90  0.0 S    irq/16-ohci_hcd	
   62 FF      50   -  90  0.0 S    irq/17-ohci_hcd	
   63 FF      50   -  90  0.0 S    irq/18-ohci_hcd	
   64 FF      50   -  90  0.0 S    irq/17-ohci_hcd	
   66 FF      50   -  90  0.0 S    irq/18-ohci_hcd	
   67 FF      50   -  90  0.0 S    irq/1-i8042	
   68 FF      50   -  90  0.0 S    irq/8-rtc0	
  135 FF      50   -  90  0.0 S    irq/22-0000:00:	
  145 FF      50   -  90  0.0 S    irq/14-pata_ati	
  149 FF      50   -  90  0.0 S    irq/15-pata_ati	
  157 FF      50   -  90  0.0 S    irq/22-firewire	
  164 FF      50   -  90  0.0 S    irq/27-radeon	
  275 FF      50   -  90  0.0 S    irq/7-parport0	
  786 FF      50   -  90  0.0 S    irq/26-enp3s0	
    3 TS       -   0  19  0.0 S    ksoftirqd/0	
   17 TS       -   0  19  0.0 S    ksoftirqd/1	

Regards,
Ralf

-- 
Full text of "Guerilla Open Access Manifesto"
http://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt




More information about the Ubuntu-devel-discuss mailing list