Last change
on this file since 213 was
208,
checked in by presbrey, 18 years ago
|
do not start NFS server by default
|
File size:
906 bytes
|
Rev | Line | |
---|
[75] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[208] | 3 | S_ON='acpid auditd autofs crond execsys-binfmt httpd ip6tables iptables lm_sensors mcstrans mdmonitor named network nrpe openafs-client restorecond sshd syslog sysstat zhm ntpd netfs nfslock portmap' |
---|
| 4 | S_OFF='NetworkManager NetworkManagerDispatcher anacron atd avahi-dnsconfd capi cpuspeed cups dc_client dc_server dhcdbd diskdump firstboot gpm haldaemon irda isdn kudzu mdmpd messagebus multipathd netdump netplugd nscd pcscd psacct rdisc readahead_later rpcgssd rpcidmapd rpcsvcgssd saslauthd sendmail snmpd snmptrapd spamassassin wpa_supplicant ypbind avahi-daemon readahead_early xfs xinetd yum-updatesd irqbalance smartd postfix nfs' |
---|
[75] | 5 | |
---|
| 6 | for s in $S_OFF; do |
---|
| 7 | /sbin/chkconfig $s off |
---|
| 8 | /sbin/service $s stop |
---|
| 9 | done |
---|
| 10 | |
---|
| 11 | for s in $S_ON; do |
---|
| 12 | /sbin/chkconfig --add $s |
---|
| 13 | /sbin/chkconfig $s on |
---|
[103] | 14 | #/sbin/service $s status || runcon system_u:system_r:initrc_t:s0 /sbin/service $s start |
---|
[75] | 15 | done |
---|
[79] | 16 | |
---|
| 17 | restorecon -R /etc |
---|
Note: See
TracBrowser
for help on using the repository browser.