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
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: