Results 1 to 5 of 5
I need to help in a inittab process.
I try start a process in a inittab runlevel 3,4,5 but not started.
see command:
T4:345:respawn:/usr/bin/sudo -u myuser /home/myuser/bin/script /home/myuser/g.conf
my current ...
- 09-28-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
inittab not respawn process
I need to help in a inittab process.
I try start a process in a inittab runlevel 3,4,5 but not started.
see command:
T4:345:respawn:/usr/bin/sudo -u myuser /home/myuser/bin/script /home/myuser/g.conf
my current runlevel is 3.
why linux unexpectedly does not run my script?
- 09-28-2009 #2
are you set up to not require a password when using sudo? because sudo expects your password as input in order to run the command, I suppose you could use expect to remedy this, or you could make that command run without a password by editing your /etc/sudoers file.
- 09-28-2009 #3Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
hi coopstah13,
my sudoers configuration is default.
this process was working yesterday and suddenly stopped working
linux distribution is CentOS 4.6
I tried other ways to run but does not work.
sudo -u myuser
su -l myuser
...
Is as if he did not execute the "init q"
"init q" not work !!
- 09-29-2009 #4Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
...
restarted the machine and the process returned to work
is as if the init could not be restarted
why this occurs?
what kind of situation that can occur?
- 09-29-2009 #5
perhaps init was updated and required a restart to take effect, perhaps also the update would not allow init functionality to continue until the restart


Reply With Quote