manac ham chơi

24 October, 2008

Managing Services in Fedora

Filed under: linux-unix — manac @ 7:31 am

Runlevel

# /sbin/runlevel
# cat /etc/inittab | grep :initdefault:
id:5:initdefault:

To switch runlevels, you can run the following, replace RUNLEVEL with the appropriate number (3, 5, etc.):
# /sbin/init RUNLEVEL

Enable/Disabling Services

# /sbin/chkconfig --list
# /sbin/chkconfig --level 35 crond on

Controlling Services

# /sbin/service --status-all
# /sbin/service crond status
crond (pid 1604) is running...
[root@charon ~]# service crond
Usage: /etc/init.d/crond {start|stop|status|reload|restart|condrestart}
[root@charon ~]# service crond stop
Stopping crond:                                            [  OK  ]
[root@charon ~]# service crond start
Starting crond:                                            [  OK  ]
[root@charon ~]# service crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]

# /etc/init.d/crond status

http://www.mjmwired.net/resources/mjm-fedora-manage-services.html

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.