From 600fc011cb2c605cf7e9f59d459f77bc5d00e18e Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 18 Apr 2012 18:58:04 +0300 Subject: [PATCH] live: added 03services hook This script specifies the (excessive) lists of services to be enabled and disabled explicitly; these are mostly based on profiles/live/image-scripts.d/init3-services from m-p-d. There might be systemd related pecularities though... --- .../live/live/image-scripts.d/03services | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 features.in/live/live/image-scripts.d/03services diff --git a/features.in/live/live/image-scripts.d/03services b/features.in/live/live/image-scripts.d/03services new file mode 100755 index 00000000..2d4b8a70 --- /dev/null +++ b/features.in/live/live/image-scripts.d/03services @@ -0,0 +1,42 @@ +#!/bin/sh +# see also m-p-d::profiles/live/image-scripts.d/init3-services + +[ -x /sbin/chkconfig ] || exit 0 + +ENABLE=" +alteratord +livecd-evms +livecd-fstab +livecd-hostname +livecd-save-nfs +livecd-setauth +livecd-setlocale +network +NetworkManager +random +rpcbind +" + +# NB: dnsmasq: https://bugzilla.altlinux.org/show_bug.cgi?id=18799 +# NB: sshd might be needed for some particular cases +DISABLE=" +anacron +bridge +clamd +crond +dhcpd +dnsmasq +mdadm +netfs +openvpn +rawdevices +slapd +smartd +sshd +update_wms +xinetd +" + +for i in $ENABLE; do chkconfig $i on 2>/dev/null; done +for i in $DISABLE; do chkconfig $i off 2>/dev/null; done +: