Find the answer to your Linux question:
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 ...
  1. #1
    Just 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?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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.

  3. #3
    Just 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 !!

  4. #4
    Just 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?

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...