Commit e4c841ed authored by Mikhail Efremov's avatar Mikhail Efremov Committed by Michael Shigorin

slinux live: Update services list

parent b315be50
#!/bin/sh #!/bin/sh
# see also m-p-d::profiles/live/image-scripts.d/init3-services # see also m-p-d::profiles/live/image-scripts.d/init3-services
#[ -x /bin/systemctl ] || exit 0
#[ -x /bin/systemctl ] || exit 0
ENABLE=" ENABLE="
network cups.service
NetworkManager avahi-daemon.service
lvm2-monitor NetworkManager.service
mdadm NetworkManager-wait-online.service
ModemManager.service
nmb.service
smb.service
dnsmasq.service
cpufreq-simple.service
alteratord.socket
bluetoothd.service
crond.service
lvm2-monitor.service
network.service
ntpd.service
lightdm.service
bluetooth.service
" "
# NB: dnsmasq: https://bugzilla.altlinux.org/show_bug.cgi?id=18799
# NB: sshd might be needed for some particular cases
DISABLE=" DISABLE="
sshd anacron.service
x11presetdrv.service
bridge.service
acpid.service
ethtool.service
iptables.service
lm_sensors.service
openvpn.service
sshd.service
consolesaver.service
syslogd.service
krb5kdc.service
clamd.service
haspd.service
cups.socket
" "
for i in $ENABLE; do for i in $ENABLE; do
[ -x /bin/systemctl ] && /bin/systemctl --no-reload enable ${i}.service /bin/systemctl --no-reload enable "$i" ||:
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i on
done done
for i in $DISABLE; do for i in $DISABLE; do
[ -x /bin/systemctl ] && /bin/systemctl --no-reload disable ${i}.service /bin/systemctl --no-reload disable "$i" ||:
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i off
done done
: :
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment