Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Non root user processes dies
Name: Stefan Date: February 19, 2003 at 02:36:28 Pacific OS: Solaris 8 CPU/Ram: doesn´t matter
Comment:
Hi! My problem: I run a background process as a non root user but when I close the terminal window the process dies and all child processes also. This does not happen when I start the process from a BASH shell though.
This is a java process and the line in the script that starts the process looks like this:
exec su $USER -c "exec my_commands > /dev/null 2>&1" &
Name: Hamid Date: February 19, 2003 at 05:01:28 Pacific
Reply:
Why not try nohup command, the process will continue to run when you terminate your session: try something like this: nohup su $USER -c "exec my_commands > /dev/null 2>&1" &
Mind you nohup may get confused with redirect ">" output as it produces its own output file called nohup.out
0
Response Number 2
Name: Stefan Date: February 19, 2003 at 05:46:48 Pacific
Summary: As you know, when binding the 80 port in Solaris, the root user is needed. But I need install iPlanet 6.1 webserver in our UAT server without root access. Do you know how to bind 80 port as non root u...
Summary: Ports 0 - 1023 are privileged ports in Solaris. To bind to these as a non-priviliged user the process must be started by a privileged user and the user id switched after the port is bound. This should...
Summary: Hello! This is the problem: I have a process that runs as non root but after I reboot the computer the process restarts as root. I have changed the owner of my startscripts in init.d directory from ro...