LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2007, 10:15 AM   #1
chuckleberry
LQ Newbie
 
Registered: May 2005
Posts: 23

Rep: Reputation: 15
Minimum number of user processes possible to execute.


Hi,
If possible I want to execute one custom process on my linux box. I want to be able to reboot the system using ctrl-alt-del but I don't need login prompts,log daemons,ssh daemons etc. Is it possible to do this? I'd like a single user type setup but without the processes that are executed. I was considering editing inittab to prevent run levels 2-5 from running and replacing it with my own custom app. Can I/is it wise to do this?

Kind Regards,
Chuck
 
Old 09-02-2007, 12:07 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
The minimum number of user processes is of course one (the one initially started by the kernel). For most intents and purposes, this is just /sbin/init, which in turn loads the other processes. If you want an alternative first processes, just pass its full pathname to the kernel using the “init” parameter. For example, you could do (in grub.conf):
Code:
kernel /boot/vmlinuz init=/bin/bash
 
Old 09-02-2007, 02:21 PM   #3
chuckleberry
LQ Newbie
 
Registered: May 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Thank you very much. Most helpful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
maximum number of processes per user kshkid Programming 10 07-06-2006 02:41 PM
Limit the number of background processes per user... trendwhore Linux - Security 6 08-27-2004 01:09 PM
Number of Mysql processes ugob Linux - Software 0 12-05-2003 01:33 PM
how to change number of running processes rsc Linux - Newbie 2 03-14-2002 05:23 PM
how to change number of default processes rsc Linux - Networking 2 03-13-2002 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration