Difference between revisions of "Redhat - fedora service startup"

From thelinuxwiki
Jump to: navigation, search
(Pushed from Themanclub.)

Revision as of 18:20, 12 March 2013

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/