Redhat - fedora service startup

From thelinuxwiki
Revision as of 18:20, 12 March 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

starting services on boot

In order to start it automatically on every system boot, run

# systemctl enable sshd.service

Likewise, you can remove it from system startup

# systemctl disable sshd.service

If you would like to see a list of all available managed services, run

# systemctl -a

Alternative method

example:

# chkconfig sshd on /etc/systemd/system/

on fedora 17, the above command creates a symlink in a subdir of /etc/systemd/system/