General :: Init.d Process Does Not Return To Prompt?

Jul 9, 2010

I have a script in /etc/rc.d/init.d named foo. I want to start/stop/restart my process as follows:$ foo start But I do not see the [OK] message once it starts. There is no shell prompt returned either. It seems that my own process is the problem. The executable that foo calls is built from this sample code:

int main()
{
do {
printf("Hello world
");
sleep(1);
} while (1);
}

Do I have to return some kind of signal handle for this to work?

View 6 Replies


ADVERTISEMENT

Programming :: Init.d Script Does Not Return Prompt?

Jul 9, 2010

I have an a script in /etc/rc.d/init.d script that I would like to start and stop my sample application. I have named my script "foo", then I can start running my application my typing $ foo start but this does not return [OK] like other scripts do and does not return to shell prompt. My application is basically like this

int main()
{
do {
printf("Hi
");
sleep(1);
} while (1);
}

What is missing from my application that prevents from returning the shell prompt?

View 3 Replies View Related

General :: Unix - Making Shell Prompt Show Last Return Value

May 30, 2011

I'm currently on a Linux machine and the shell prompt is showing me the last return value and number of executed commands (picture included, with these numbers shown in purple).

My own computer doesn't have this, how can I configure it? I'm using Xubunto, if more details are needed let me know -- I'm not much of a Linux user (I don't know what's relevant here).

View 3 Replies View Related

General :: Could Not Receive Return Value From Daemon Process?

Mar 17, 2011

each time my linux is booting, it check something like eth0 and something else. but there is something i write below that fail... Code: could not receive return value from daemon proccess?

View 3 Replies View Related

General :: Fork() Always Return 0 Even In The Parent Process?

Mar 18, 2011

my code is very simple:

int pid, status;
printf("parent process id=%d, to call fork
",getpid());
if(pid=fork()<0)

[Code].....

but everytime I can only get two fork return pid=0. In parent process, the pid returned by fork() should be >0 and equal to the child process id.

View 1 Replies View Related

General :: Init : No More Process Left In Runlevel

Jul 5, 2011

I am using suse 10.3 and my machine is giving this error.

inittab file is ok
no partition is 100% used.
reinstall sysvinit package

View 3 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

General :: Gentoo - INIT Process Necessary For An Ultralight System Installation?

Jul 30, 2011

I am working on a light version of linux for no particular reason other than to see how small I could make it. I was wondering if INIT was necessary, or if I could perform all of the INIT-related tasks (fsck, unmounting, etc) by hand/bash scripts?

I do not need multi-user functionality (Or much of anything for that matter). I started off with a Gentoo base 2.0.2 Install with kernel 2.6.38.

View 2 Replies View Related

Slackware :: Prompt Does Not Return / Solve It?

Jan 16, 2010

When I run startx from a console in Slackware 13.0 the prompt does not return and the console becomes useless. The console does not respond to any keys except to print control characters on the screen. Shouldn't the prompt return in the console after x is running? I have to login on a different console if I want to use a console.

View 4 Replies View Related

Debian Multimedia :: Eterm Does Not Return A Prompt On Jessie

Oct 4, 2015

This issue is similar to thread [URL] .... and it goes like this:

Eterm can be started either from the menu or from the command line, but it returns no prompt. It just hangs there, displaying a backdrop within the terminal, pressing <Enter> just moves the block cursor down and other input keys appear normally in the terminal, there is just no response or interpretation from the shell.

It seems that for some reason the shell (bash in my case) just does not interact with Eterm application.

One more point is that if the Eterm is terminated by the Close (X) Button, it seems to go in some kind of loop and needs to be killed from the command line (killall Eterm), whereas SIGINT (<Ctrl>+<C> inside the Eterm window) exits properly with no leftover zombies.

View 5 Replies View Related

Programming :: Pthread_create Does Not Return The PID ( Process ID)?

Aug 5, 2010

I am using pthread_create system call to create a thread. However pthread_create does not return the PID ( process ID). Is there any quick way to fınd the PID of the created thread.

View 1 Replies View Related

Programming :: Get Process Statistics From Kernel And Return Them Buf?

Apr 7, 2011

I am want get next information: Get process statistics from kernel and return them buf as

Quote:

number of processes : ticks_user : ticks_system : ticks_interrupt : cpuseconds : procsizes : resident segment sizes I am find some this information in /proc/[pid]/stat, but there are is not data about ticks system, ticks_interrupt, cpusecond. Where I am can find it information???

I am write on C, better if it will file witch information, and not programm.

View 2 Replies View Related

Debian :: Loading A Module From The Init Process?

Dec 6, 2010

recently I've updated my kernel, i had to reconfigure some stuff, in particular, the b43 module is not loading at init process, my question is: what command should I use to load it from the init? or what file should I hagve to edit?

View 1 Replies View Related

Programming :: Can Expect Return Control Of A Spawned Process To A Shell Script

Nov 19, 2009

Is it possible to have an Expect script spawn an SSH session, log in, then go into interactive mode and give control of the SSH session to a Bash script? Here's a simplified example of the script so far:

Code:
#!/bin/bash
expect -c "

[code]....

View 4 Replies View Related

Programming :: Difference Between Init And Main Function In A Process

Jul 12, 2010

I have a project in which many processes run. p1,p2,p3.

->There are some .so files are included in some process when needed example ppp.so in process p1 (when ppp is needed and will go like a plugin) but it has a init () function how a process includes a init() function ?

->process p1 has main function i.e main()

->so evry process has main() right ?

what is the difference between init () and main () functoins. where is init () used and how many init() a process van have ?

View 3 Replies View Related

Ubuntu :: Init: Ureadahead Main Process 388 Terminated With Status 5

Nov 7, 2010

I have Ubuntu 10.10 installed. When I boot, this error message appeared "init: ureadahead main process 388 terminated with status 5" After that, another error message appear saying " *ERROR* render ring head not reset to zero"

View 2 Replies View Related

Ubuntu :: Init: Ureadahead Main Process (423) Terminated With Status 5?

Dec 1, 2010

Code: init: ureadahead main process (423) terminated with status 5 Ubuntu 10.10 lorentz tty1

lorentz login: The first line of the above shows up during boot before the display goes graphical. I can see it again (all of the above) when I Ctrl+Alt+F1 to access the first text console. Anyone know what is causing this, what problems can happen as a result, and what should be done about it? I moved from 9.10 on one machine to 10.10 on a new machine, so I don't know if it's a hardware problem or software. I am running 64-bit. I am not really seeing any problems happening besides the few scattered application and GUI glitches that are common with a new/migrated setup.

View 2 Replies View Related

Ubuntu :: Init: Hostname Main Process (#) Terminated With Status 1?

Apr 20, 2011

I keep getting this message as the first thing I see when I boot up. Afterwards, it displays the ubuntu logo and dots under it and then the screen blacks out, but the display lights act like its OK (wireless ETC). should I use a boot CD or something? The hard drive is fine and this happened after the computer blacked out during updates. i scanned the hard drive and its OK, according to the little scan thing you can do before booting up. I have a Compaq Presario V200. For specs, thats all I know.

View 1 Replies View Related

Ubuntu :: Init: Ureadahead-other Main Process (814) Terminated With Status 4

May 20, 2011

I found below message in my boot.log. init: ureadahead-other main process (814) terminated with status 4

View 4 Replies View Related

Fedora :: Init: RcS Post-stop Process (1420) Terminated With Status 139?

Nov 30, 2010

Can't seem to get past this error Doing a google search resulted with no good answers that pertained to this issue. Not sure what's halting the system from starting up, but it just sits and hangs at this forever. Only able to view the error when booting into single user mode - normal boot hangs after "enabling /etc/fstab swaps: [OK]"

View 3 Replies View Related

Ubuntu Installation :: Init: Mountall Main Fsck Process (574) Terminated?

Jan 23, 2010

I have upgraded my ubuntu to the latest version a few days ago. Prior to the update I played a little with my partitions (transferred about 15GB from my windows partition to ubuntu partition).Up until yesterday everything worked. For some reason ubuntu will not load up now. After selecting ubuntu on grub i get the following msg: init: mountall main fsck process (574) terminated with status 3 mount of filesystem failed one or more of the mounts

View 3 Replies View Related

Ubuntu Installation :: Init: Dbus Pre-start Process (511) Terminated With A Status 1

Aug 19, 2010

I had been having problems with every LiveCD after 8.04.1 I tried both xubuntu and ubuntu (same internals, same results)

I ended up installing xubuntu 10.4 using the text mode installer.

The system basically works, I can not get gdm running.

dbus fails as noted above. I found launchpad bug #446971 and tried some of the work arounds with no success.

The system is an old eMachines T1120

Code:
CPU: Intel Celeron Processor 1.20GHz (w/256KB)
Operating System: Genuine Microsoft Windows XP Home Edition
Chipset: Intel 810e chipset

[Code]....

View 1 Replies View Related

Server :: Writing Debian Init Script For Process That Has No Syslog Integration?

May 18, 2011

I have inherited ownership of a Debian server process that logs its error message to stdout/stderr. Currently its initscript has lines like:

start-stop-daemon [options] --exec $DAEMON -- $DAEMON_ARGS < /dev/null 2>&1 | logger $LOG_OPTIONS 2> /dev/null &

I have tried to abstract as much of that away as possible. The options specify a pid file, to make a pid file. A subsequent line tries to establish whether the process is up, though I think several conditions are not checked for. This script seems pretty ropey to me. I am trying to start again with the lsb-base one in /etc/init.d/skeleton though that is going to require a lot of modification. get the code change to use the syslog API however that is out of the question at least for now.

1.) Create a named pipe
2.) Start up a logger daemon that reads from the named pipe
3.) start up the server process that writes to the named pipe

It would be ideal for this if start-stop-daemon offered options to specify where the IO of the daemon process should be redirected to. However I am not about to offer to adopt that package (with ~400 bugs) so I doubt that will happen. Trying to specify the redirection on the command line does not work. In the case of the logger daemon start-stop-daemon seems to hang on the system call. In the case of the server process the pipe gets closed when start-stop-daemon exits, so the logger daemon exits. None of that seems surprising.So what I am doing now is to write simple wrapper scripts for the server and logger processes. Both wrapper scripts have this structure:

1.) sanity check the arguments
2.) exec program [suitable redirection of IO]

Then the start-stop-daemon can call the wrapper scripts as daemons. From my experiments so far this seems to work. However I feel a bit uncomfortable with this. It introduces several new wrapper scripts.I cannot think of any obvious security holes but I suppose race conditions are inevitable.

View 1 Replies View Related

Ubuntu :: Unable To Boot - Showing Init Rcefault(2111) Main Process Terminated

Feb 13, 2010

Am using ubuntu for a year Now am getting some prob am unable to boot it is showing init rcefault(2111) main process terminated

View 1 Replies View Related

Ubuntu :: Init: Failed To Spawn Ufw Pre-start Process: Unable To Execute: No Such File Or Directory

Jun 12, 2010

I am using Ubuntu 10.04 LTS. Two days ago I updated using update manager. After that I can not boot Ubuntu. When I trying to boot system showing message " Ubuntu is running in low-graphics mode Your screen, graphics card and input device settings could not be detected correctly. You will need to configure these yourself" But I can not configure it.I can not boot to 'recovery mode' also

/var/log/boot.log

Code:

fsck from util-linux-ng 2.17.2
/dev/sda6: clean, 304282/1680960 files, 2964945/6723194 blocks
init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory

[code]....

Now I am using Live CD.

View 3 Replies View Related

Ubuntu Installation :: INIT: Failed To Spawn Ureadahead Main Process. No Such File Or Directory

Feb 3, 2011

I have an Acer 9410Z laptop that I believe is running the Maverick Meerkat version of Ubuntu Studio. I just did an upgrade using Synaptic. I get to GRUB, but When I try to boot 2.6.35-22 (or the recovery mode or a real time kernel I had installed )I get the error:

INIT: Failed to spawn ureadahead main process. No such file or directory I then get the Ubuntu Studio splash screen for 2 seconds but then instead of a normal boot I end up in the terminal.

View 3 Replies View Related

Ubuntu :: Unable To Boot: Init: Plymouth Main Process (57) Killed By SEGV Signal

May 2, 2011

I upgraded from Ubuntu 10.0.4 to 11.0.4 on a Dell Optiplex. Now, when I boot, I am given the option to boot into different kernels. I select "ubuntu, with Linux 2.6.38-8-generic", which results in a black screen that reads

Code:

init: plymouth main process (58) killed by SEGV signal and that's where it hangs. Pressing ENTER or hitting Esc does nothing. What steps can I take to recover my machine and all the files I used to have on it?

View 2 Replies View Related

Ubuntu :: Init: Failed To Spawn Network-manager Main Process: Unable To Execute: No Such File Or Directory

May 27, 2010

I just updated from 9.04 to 9.10 (it's a long story, and I still can't go beyond 2.30).The update got rid of WICD, which is what I used and installed network-manager. Network-manager was not working at all, so I uninstalled it again and installed WICD. I could connect perfectly and had no problems.However, now the computer hangs during boot, saying that init can't start network-manager. I assume that something went wrong during the uninstalling process, since it wasn't updated.

This is the message: init: Failed to spawn network-manager main process: unable to execute: No such file or directory.

So how do I update it or manually change it so it stops requesting network-manager?

View 3 Replies View Related

Software :: Init: Failed To Spawn Readahead-collector Main Process: Unable To Execute: No Such File Or Directory

Apr 6, 2011

My machine is dual booted with Fedora 14 and RHEL 6. (I have only installed Red Hat because I am studying for RHCE). Just now I tried to install the Banshee player on my Red Hat OS. I ran various scripts inside the directory to see what really happens and after I ran the 'Makefile.in' file my terminal froze. It displayed '/bin/ not found'Then i restarted my computer and I got the following messages:

init: Failed to spawn readahead-collector main process: unable to execute: no such file or directory
init: Failed to spawn rcS main process: unable to execute: No such file or directory
init: Failed to spawn readahead main process: unable to execute: No such file or directory

[code].....

I tried run level 1 and run level 3 but I get the same error messages.

PS: My Fedora 14 installation is working fine.

View 1 Replies View Related

Ubuntu :: Doesn't Booting Up - Black Screen Appears With The Text: Init: Ureadahead Main Process (306) Terminated With Status 5

Sep 11, 2010

I installed Lucid Lynx on my laptop a couple of months ago and for the most part everything was working fine. However, just recently the computer doesn't seem to be booting up at all. I start up the machine and then a black screen appears with the text: init: ureadahead main process (306) terminated with status 5 the (#) is different in some boot-ups

And the computer just hangs there. typing anything doesn't seem to help at all. I press enter and a new line just appears. I've left it there for hours and still no login screen.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved