mkimage-profiles/features.in/slinux/live/image-scripts.d/50-services

30 lines
636 B
Plaintext
Raw Normal View History

2012-05-03 16:13:19 +04:00
#!/bin/sh
# see also m-p-d::profiles/live/image-scripts.d/init3-services
2012-05-03 16:13:19 +04:00
#[ -x /bin/systemctl ] || exit 0
#[ -x /bin/systemctl ] || exit 0
2012-05-03 16:13:19 +04:00
ENABLE="
network
NetworkManager
lvm2-monitor
mdadm
"
2012-05-03 16:13:19 +04:00
# NB: dnsmasq: https://bugzilla.altlinux.org/show_bug.cgi?id=18799
# NB: sshd might be needed for some particular cases
DISABLE="
sshd
"
2012-05-03 16:13:19 +04:00
for i in $ENABLE; do
[ -x /bin/systemctl ] && /bin/systemctl --no-reload enable ${i}.service
2012-05-03 16:13:19 +04:00
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i on
done
2012-05-03 16:13:19 +04:00
for i in $DISABLE; do
[ -x /bin/systemctl ] && /bin/systemctl --no-reload disable ${i}.service
2012-05-03 16:13:19 +04:00
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i off
done
: