LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Minimum number of user processes possible to execute. (https://www.linuxquestions.org/questions/linux-software-2/minimum-number-of-user-processes-possible-to-execute-581650/)

chuckleberry 09-02-2007 10:15 AM

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

osor 09-02-2007 12:07 PM

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

chuckleberry 09-02-2007 02:21 PM

Thank you very much. Most helpful. :)


All times are GMT -5. The time now is 11:19 AM.