Backgroud Jobs from init.d
I am starting a background job from a startup script in init.d
I'm using "sudo -u" to start the job as a non pivilaged user as opposed to root.
Something like so:
sudo -u testuser /usr/local/bin/command parameters &
The background job works fine. But I would like to bring the process back to the terminal as I would usually do using "fg".
But the "jobs" command does not show my process. I have tried running "jobs" as root and as "testuser", but it does not list anything.
So... how do I show this job (or any others like it)?
And how do I return it to the foreground\console?