Services2011/11/09 |
[1] | Stop services that are enabled by default but you don't need them. List all SysV services by a command below. |
[root@dlp ~]# systemctl -t service UNIT LOAD ACTIVE SUB JOB DESCRIPTION auditd.service loaded active running Security Auditing Service crond.service loaded active running Command Scheduler dbus.service loaded active running D-Bus System Message Bus fedora-readonly.service loaded active exited Configure read-only root support fedora-s...t-late.service loaded active exited Initialize storage subsystems (RAID, LVM, etc.) fedora-s...e-init.service loaded active exited Initialize storage subsystems (RAID, LVM, etc.) fedora-w...torage.service loaded active exited Wait for storage scan getty@tty1.service loaded active running Getty on tty1 ip6tables.service loaded active exited IPv6 firewall with ip6tables iptables.service loaded active exited IPv4 firewall with iptables lvm2-monitor.service loaded active exited Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progres s polling netfs.service loaded active exited LSB: Mount and unmount network filesystems. network.service loaded active running LSB: Bring up/down networking remount-rootfs.service loaded active exited Remount Root FS rsyslog.service loaded active running System Logging Service sendmail.service loaded active running Sendmail Mail Transport Agent sm-client.service loaded active running Sendmail Mail Transport Client sshd-keygen.service loaded active exited SSH server keys generation. sshd.service loaded active running OpenSSH server daemon. systemd-logind.service loaded active running Login Service systemd-...ollect.service loaded active exited Collect Read-Ahead Data systemd-...pi-vfs.service loaded active exited Remount API VFS systemd-...bridge.service loaded active running STDOUT Syslog Bridge systemd-sysctl.service loaded active exited Apply Kernel Variables systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories systemd-...ssions.service loaded active exited Permit User Sessions systemd-...-setup.service loaded active exited Setup Virtual Console udev-settle.service loaded active exited udev Wait for Complete Device Initialization udev-trigger.service loaded active exited udev Coldplug all Devices udev.service loaded active running udev Kernel Device Manager LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. JOB = Pending job for the unit. 30 units listed. Pass --all to see inactive units, too. |
[2] | Stop a service. The example below means stop 'sendmail' and disable auto-start at booting system. |
[root@dlp ~]# systemctl stop sendmail.service [root@dlp ~]# systemctl disable sendmail.service rm '/etc/systemd/system/multi-user.target.wants/sendmail.service' |
[3] | Tehre are some SysV services on Fedora 16. Those are controled by chkconfig like below. |
[root@dlp ~]# chkconfig --list Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off # unset auto-start setting for a netfs [root@dlp ~]# chkconfig netfs off |
Sponsored Link |