I don't believe there is a way to do this with the chkconfig command, but you could try listing and sorting the contents of the /etc/rc.d/rc.*d directories to create an ordered list by priority of the daemons. The below command uses find to list all the symbolic links to the daemons, grabs the daemon name, sorts them by priority, remove any duplicates, and finally present an ordered listing by priority. This just shows the startup daemons, to do the same with the shutdown process change the uppercase S to a K.
This User Gave Thanks to in2nix4life For This Post:
Question: Suppose I want to, from the terminal, use a shell script that would do the display image.jpg command to load multiple images from a directory all at the same time. One terminal, and for example 10 image files. Basically I want to execute 10 different commands simultaniously all from the... (4 Replies)
I'm just wondering what the differences/relationships there are between processes, services, daemons and subsystems?
I keep coming across these terms but I can't find clear definitions/explanations of these terms.
:confused: (3 Replies)
Hi,
My script prints a few varibales as each it reads each line of a text file and then prints them on screen, however iam having problem in aligning and sorting them.
what happens is this
Last First Number
Mark leo 87798798... (1 Reply)
Hi,
I am new to the world of Unix, I need some help in doing a small project at work.
Can anyone point out any good references for the below functions?
Objective
---------
To write a daemon that will run in the central server to
1) access our process(I will find this out), log down... (1 Reply)
My shell script below for import data to Oracle
it run okay. but the text display not correct follow order command executed.
=========================Shell Script code=================
#!/bin/sh
#directory = ${1-'pwd'}
#run import data with SQLLoader
runSQLLoader()
{
... (2 Replies)
Hello,
I am debugging a program which works as daemon. It sigfaults, unfortunately I'm unable to generate core dump file. Here is what I am doing:
tsurko@bastila:~$ ulimit -c unlimited
tsurko@bastila:~$ ulimit -c
unlimited
tsurko@bastila:~$ cat /etc/sysctl.conf | grep 'core_pattern'... (1 Reply)
Hello,
What i have to do is make a top 10 list of users sorted by the number of processes opened at a given time. Can anyone help me with finding out for a given moment, for all users how many processes each had opened? (5 Replies)
Hi, I was wondering if somebody could help me as I am struggling with writing a script for a training course.
Ive had to write 5 scripts and this is the last one but am struggling with this even though I understand what it is meant to do.....
PROBLEM: write a script which will allow you to... (1 Reply)
Hi,
Is it possible to display processes which have been running for more than a 5hrs using a variation of the ps -ef command?
Regards,
Manny (5 Replies)
Discussion started by: mantas44
5 Replies
LEARN ABOUT LINUX
renice
RENICE(1) BSD General Commands Manual RENICE(1)NAME
renice -- alter priority of running processes
SYNOPSIS
renice [-n] priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]
renice -h | -v
DESCRIPTION
Renice alters the scheduling priority of one or more running processes. The following who parameters are interpreted as process ID's,
process group ID's, or user names. Renice'ing a process group causes all processes in the process group to have their scheduling priority
altered. Renice'ing a user causes all processes owned by the user to have their scheduling priority altered. By default, the processes to
be affected are specified by their process ID's.
Options supported by renice:
-n, --priority
The scheduling priority of the process, process group, or user.
-g, --pgrp
Force who parameters to be interpreted as process group ID's.
-u, --user
Force the who parameters to be interpreted as user names.
-p, --pid
Resets the who interpretation to be (the default) process ID's.
-v, --version
Print version.
-h, --help
Print help.
For example,
renice +1 987 -u daemon root -p 32
would change the priority of process ID's 987 and 32, and all processes owned by users daemon and root.
Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their ``nice value''
(for security reasons) within the range 0 to PRIO_MAX (20), unless a nice resource limit is set (Linux 2.6.12 and higher). The super-user
may alter the priority of any process and set the priority to any value in the range PRIO_MIN (-20) to PRIO_MAX. Useful priorities are: 20
(the affected processes will run only when nothing else in the system wants to), 0 (the ``base'' scheduling priority), anything negative (to
make things go very fast).
FILES
/etc/passwd to map user names to user ID's
SEE ALSO getpriority(2), setpriority(2)BUGS
Non super-users can not increase scheduling priorities of their own processes, even if they were the ones that decreased the priorities in
the first place.
The Linux kernel (at least version 2.0.0) and linux libc (at least version 5.2.18) does not agree entirely on what the specifics of the sys-
temcall interface to set nice values is. Thus causes renice to report bogus previous nice values.
HISTORY
The renice command appeared in 4.0BSD.
AVAILABILITY
The renice command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
4th Berkeley Distribution June 9, 1993 4th Berkeley Distribution