equivalent of chkconfig

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Aug 18 13:14:46 UTC 2015


On Tue, 18 Aug 2015 12:36:17 +0200, Ralf Mardorf wrote:
>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

You might say, simply don't use "list-unit-files" and you might find one
workaround after the other, but then there's no compatibility among
different distros and the list of workarounds becomes longer and longer.

Let's say you'll maintain several installs by a script using
  sudo systemd-nspawn -qD /mnt/point systemctl foo
then you can't simply avoid using "list-unit-files".

[weremouse at moonstudio ~]$ sudo systemd-nspawn -qD /mnt/archlinux/
[sudo] password for weremouse: 
Failed to create directory /mnt/archlinux/sys/fs/selinux: Read-only file system
Failed to create directory /mnt/archlinux/sys/fs/selinux: Read-only file system
[root at archlinux ~]# systemctl list-units
Failed to get D-Bus connection: Operation not permitted
[root at archlinux ~]# systemctl status rtirq
Failed to get D-Bus connection: Operation not permitted
[root at archlinux ~]# systemctl list-unit-files | grep rtirq
rtirq.service                              enabled 
[root at archlinux ~]# logout
[weremouse at moonstudio ~]$

Do you understand now why I call it a mess? Try to maintain Ubuntu from
another install by systemd-nspawn with scripts you use for other systemd
distros too.

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




More information about the Ubuntu-devel-discuss mailing list