On Thu, Sep 18, 2014 at 02:24:57PM +0200, Petter Reinholdtsen wrote: > [Wolfgang Schweer] > > The old code doesn't disable autofs anymore in a stable way, the new > > one does; homedirs are mounted via sshfs. (I read update-rc.d > > --help) > > Did you figure out why? Is update-rc.d now provided by some systemd > package? I was convinced it was the same across sysvinit and systemd? I wasn't able to figure it out. > > I guess, it will work like before, as all required init scripts are > > available (like automounter, nfs-common, nslcd, nscd). Only services > > defined in <chroot>/usr/share/ltsp/init-ltsp.d/50-rm-system-services > > (and those defined in lts.conf via RM_SYSTEM_SERVICES) are dropped. > > How can it work as before when half the logic is removed, the one > enabling disabled systems when needed? The old code was sort of 'be 150% sure', enabling services that were not disabled in reality. Attached is the output from 'ps ax' in both cases. Wolfgang
PID TTY STAT TIME COMMAND 1 ? Ss 0:01 /sbin/init 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 4 ? S 0:00 [kworker/0:0] 5 ? S< 0:00 [kworker/0:0H] 6 ? S 0:00 [kworker/u2:0] 7 ? S 0:00 [watchdog/0] 8 ? S< 0:00 [khelper] 9 ? S 0:00 [kdevtmpfs] 10 ? S< 0:00 [netns] 11 ? S< 0:00 [writeback] 12 ? SN 0:00 [ksmd] 13 ? S< 0:00 [kintegrityd] 14 ? S< 0:00 [bioset] 15 ? S< 0:00 [crypto] 16 ? S< 0:00 [kblockd] 17 ? S 0:00 [kworker/0:1] 18 ? S 0:00 [khungtaskd] 19 ? S 0:00 [kswapd0] 20 ? S 0:00 [fsnotify_mark] 25 ? S< 0:00 [kthrotld] 26 ? S< 0:00 [ipv6_addrconf] 27 ? S< 0:00 [deferwq] 28 ? S 0:00 [kworker/u2:1] 63 ? S 0:00 [khubd] 64 ? S< 0:00 [ata_sff] 65 ? S 0:00 [scsi_eh_0] 66 ? S< 0:00 [scsi_tmf_0] 67 ? S 0:00 [scsi_eh_1] 68 ? S< 0:00 [scsi_tmf_1] 69 ? S 0:00 [kworker/u2:2] 70 ? S 0:00 [scsi_eh_2] 71 ? S< 0:00 [scsi_tmf_2] 72 ? S 0:00 [kworker/u2:3] 73 ? S 0:00 [kworker/u2:4] 104 ? Ss 0:00 udhcpc -n -C -O rootpath -s /tmp/dhcp-script.sh -i eth0 116 ? S< 0:00 [rpciod] 117 ? S< 0:00 [nfsiod] 301 ? Ss 0:00 nbd-client 10.0.2.2 -N swap /dev/nbd1 -swap 303 ? S< 0:00 [nbd1] 305 ? S< 0:00 [kworker/0:1H] 307 ? S< 0:00 [kdmflush] 327 ? S< 0:00 [bioset] 328 ? S< 0:00 [kcryptd_io] 329 ? S< 0:00 [kcryptd] 330 ? S< 0:00 [bioset] 346 ? Ss 0:00 /lib/systemd/systemd-journald 347 ? S 0:00 [kauditd] 352 ? S 0:00 [kworker/0:2] 366 ? S 0:01 [kworker/0:3] 370 ? Ss 0:00 /lib/systemd/systemd-udevd 414 ? S< 0:00 [kpsmoused] 654 ? Ss 0:00 /sbin/rpcbind -w 664 ? Ss 0:00 /sbin/rpc.statd 680 ? Ss 0:00 /usr/sbin/rpc.idmapd 685 ? Ss 0:00 /usr/sbin/rpc.gssd 690 ? Ss 0:00 avahi-daemon: running [auto-mac-08-00-27-c5-07-49.local] 718 ? Ss 0:00 /usr/sbin/sshd -D 720 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 723 ? Ssl 0:00 /usr/sbin/rsyslogd -n 724 ? Ssl 0:00 /usr/sbin/ModemManager 725 ? Ss 0:00 /usr/sbin/inetd -i 728 ? Ss 0:00 /lib/systemd/systemd-logind 747 ? S 0:00 /bin/sh /etc/init.d/sitesummary-client start 748 tty1 Ss 0:00 /bin/login -- 756 ? Ssl 0:00 /usr/sbin/nscd 759 ? S 0:00 sleep 300 842 ? SLl 0:00 /usr/sbin/nslcd 893 tty7 Ss+ 0:00 /bin/sh /usr/share/ltsp/screen_session 07 957 ? Ss 0:00 /usr/sbin/cron -f 958 ? S 0:00 avahi-daemon: chroot helper 962 ? Ss 0:00 /usr/sbin/cups-browsed 964 ? Ssl 0:00 /usr/lib/policykit-1/polkitd --no-debug 1009 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 109:119 1112 ? Ssl 0:00 /usr/sbin/console-kit-daemon --no-daemon 1872 ? SNsl 0:00 /usr/lib/rtkit/rtkit-daemon 1894 ? Ssl 0:00 /usr/lib/upower/upowerd 1921 ? Ss 0:00 /usr/lib/bluetooth/bluetoothd 1931 ? Ss 0:00 /lib/systemd/systemd-hostnamed 1943 ? S< 0:00 [krfcommd] 1949 ? Ssl 0:00 /usr/lib/udisks2/udisksd --no-debug 2048 tty7 S+ 0:00 xinit /usr/share/ltsp/xinitrc /usr/sbin/ldm -- :7 vt7 -auth /var/run/ldm-xauth-Hh9KHaehX/Xauthority -br 2093 ? S<s 0:00 X :7 vt7 -auth /var/run/ldm-xauth-Hh9KHaehX/Xauthority -br 2098 tty7 S 0:00 /usr/sbin/ldm 2130 tty7 S 0:00 /usr/lib/i386-linux-gnu/ldm/wwm 2131 tty7 S 0:00 /usr/lib/i386-linux-gnu/ldm/ldmgtkgreet 2135 ? Ss 0:00 /lib/systemd/systemd --user 2140 ? S 0:00 (sd-pam) 2147 tty1 S 0:00 -bash 2154 tty1 R+ 0:00 ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:00 /sbin/init 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 4 ? S 0:00 [kworker/0:0] 5 ? S< 0:00 [kworker/0:0H] 6 ? S 0:00 [kworker/u2:0] 7 ? S 0:00 [watchdog/0] 8 ? S< 0:00 [khelper] 9 ? S 0:00 [kdevtmpfs] 10 ? S< 0:00 [netns] 11 ? S< 0:00 [writeback] 12 ? SN 0:00 [ksmd] 13 ? S< 0:00 [kintegrityd] 14 ? S< 0:00 [bioset] 15 ? S< 0:00 [crypto] 16 ? S< 0:00 [kblockd] 17 ? S 0:00 [kworker/0:1] 18 ? S 0:00 [khungtaskd] 19 ? S 0:00 [kswapd0] 20 ? S 0:00 [fsnotify_mark] 25 ? S< 0:00 [kthrotld] 26 ? S< 0:00 [ipv6_addrconf] 27 ? S< 0:00 [deferwq] 28 ? S 0:00 [kworker/u2:1] 63 ? S 0:00 [khubd] 64 ? S< 0:00 [ata_sff] 65 ? S 0:00 [scsi_eh_0] 66 ? S< 0:00 [scsi_tmf_0] 67 ? S 0:00 [scsi_eh_1] 68 ? S< 0:00 [scsi_tmf_1] 69 ? S 0:00 [scsi_eh_2] 70 ? S 0:00 [kworker/u2:2] 71 ? S 0:00 [kworker/u2:3] 72 ? S< 0:00 [scsi_tmf_2] 73 ? S 0:00 [kworker/u2:4] 112 ? Ss 0:00 udhcpc -n -C -O rootpath -s /tmp/dhcp-script.sh -i eth0 124 ? S< 0:00 [rpciod] 125 ? S< 0:00 [nfsiod] 307 ? Ss 0:00 nbd-client 10.0.2.2 -N swap /dev/nbd1 -swap 310 ? S< 0:00 [nbd1] 311 ? S< 0:00 [kworker/0:1H] 313 ? S< 0:00 [kdmflush] 333 ? S< 0:00 [bioset] 334 ? S< 0:00 [kcryptd_io] 335 ? S< 0:00 [kcryptd] 336 ? S< 0:00 [bioset] 351 ? Ss 0:00 /lib/systemd/systemd-journald 352 ? S 0:00 [kauditd] 358 ? S 0:00 [kworker/0:2] 370 ? S 0:00 [kworker/0:3] 374 ? Ss 0:00 /lib/systemd/systemd-udevd 408 ? S< 0:00 [kpsmoused] 657 ? Ss 0:00 /sbin/rpcbind -w 667 ? Ss 0:00 /sbin/rpc.statd 683 ? Ss 0:00 /usr/sbin/rpc.idmapd 688 ? Ss 0:00 /usr/sbin/rpc.gssd 693 ? Ss 0:00 avahi-daemon: running [auto-mac-08-00-27-c5-07-49.local] 706 ? Ss 0:00 /usr/sbin/sshd -D 708 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 711 ? Ssl 0:00 /usr/sbin/rsyslogd -n 715 ? Ssl 0:00 /usr/sbin/ModemManager 718 ? Ss 0:00 /usr/sbin/inetd -i 723 ? Ss 0:00 /lib/systemd/systemd-logind 735 ? S 0:00 /bin/sh /etc/init.d/sitesummary-client start 737 ? S 0:00 avahi-daemon: chroot helper 740 ? S 0:00 sleep 300 763 tty1 Ss 0:00 /bin/login -- 767 ? Ssl 0:00 /usr/sbin/nscd 773 ? SLsl 0:00 /usr/sbin/lightdm 802 ? SLl 0:00 /usr/sbin/nslcd 894 ? Ss 0:00 /usr/sbin/cron -f 901 ? Ssl 0:00 /usr/sbin/automount --pid-file /var/run/autofs.pid 906 ? Ss 0:00 /usr/sbin/cups-browsed 907 ? Ssl 0:00 /usr/lib/policykit-1/polkitd --no-debug 940 ? Ss 0:00 /lib/systemd/systemd --user 941 ? Ssl 0:00 /usr/sbin/console-kit-daemon --no-daemon 1007 ? S 0:00 (sd-pam) 1045 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 109:119 1070 ? Ss 0:00 /lib/systemd/systemd --user 1073 ? S 0:00 (sd-pam) 1076 ? Sl 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login 1092 tty7 Ss+ 0:00 /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch 1099 ? Sl 0:00 lightdm --session-child 32 35 1109 ? Ssl 0:01 /usr/sbin/lightdm-gtk-greeter 1114 ? S 0:00 /usr/bin/dbus-launch --autolaunch 080027c5074900000000000000000000 --binary-syntax --close-stderr 1115 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session 1117 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher 1121 ? S 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3 1124 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session 1127 ? S 0:00 lightdm --session-child 14 35 1133 ? Ss 0:00 /lib/systemd/systemd --user 1138 ? S 0:00 (sd-pam) 1145 tty1 S 0:00 -bash 1152 tty1 R+ 0:00 ps ax
Attachment:
signature.asc
Description: Digital signature