85 reputation
119
bio website scottbuffa.com
location Michigan
age
visits member for 3 years, 1 month
seen Jan 15 at 1:51

Oct
14
awarded  Teacher
Sep
24
awarded  Popular Question
Aug
28
awarded  Famous Question
Oct
22
awarded  Popular Question
May
20
accepted What starts the login prompt in RHEL?
May
1
awarded  Popular Question
Feb
26
awarded  Notable Question
Sep
27
awarded  Popular Question
Dec
8
asked How to get environment variables to persist across login?
Dec
8
accepted How does setting the Setuid bit affect shell scripts that run on boot of the system, before any login has occurred?
Dec
8
comment How to make a src.rpm unpack the source to whatever directory I want?
yes, that's exactly what I did. I just didn't understand how the spec file worked in terms of rpmbuild.
Dec
8
asked How does setting the Setuid bit affect shell scripts that run on boot of the system, before any login has occurred?
Dec
8
answered How to set global environment variables at boot through a script, and have them available for an application that runs before login?
Dec
7
comment What starts the login prompt in RHEL?
At what point is this process started? Does it start after the services in your run level directory or before?
Dec
7
comment What starts the login prompt in RHEL?
Could it possibly be in the rc.sysinit file?
Dec
7
asked What starts the login prompt in RHEL?
Dec
7
awarded  Commentator
Dec
7
comment How to set global environment variables at boot through a script, and have them available for an application that runs before login?
I guess I can get rid of the dependency on the variables set in the service. In this case, I think it will work, as long as the script gets run before the service starts up. Do you know when the login shell is started up? Or can I control when the login shell starts up? I don't have a service for it in the rcX.d directory for my run level .
Dec
7
comment How to set global environment variables at boot through a script, and have them available for an application that runs before login?
You may be on to something here. I don't want to do exactly that though since the script cannot be located in the /etc directory for IA reasons. But I think I can create a symlink in there that points to my script. But to complicate things, some of the environment variables that are set by the script are coming from environment variables set by the service. So this might not work, since the variables have to already be set before the service script gets to the end, but not too early or the environment variables needed won't have been created by the service yet.
Dec
7
comment How to set global environment variables at boot through a script, and have them available for an application that runs before login?
I cannot start the application directly from the service but I can start it from the service by calling a script that does it. I would like to keep the setting of the environment variables separate from the script that starts the application to abstract out as much functionality that does not need to be in the application start script as possible.