Best way to set TTASSHCLIENT?
Hi,
what is the best way to set above mentioned variable on a SuSE Server
system so it is available after a reboot? I don't want to manipulate the
startup-scripts provided by Tarantellea.
I tried a few things which don't reeally satisfy me, i.e. I tried to set
it in /etc/init.d/boot.local which does not work at all.
TIA,
Jens
[395 byte] By [
] at [2007-11-25 20:49:41]

# 1
Hi Jens,
consider
man init
man initscript
If you create a script /etc/initscript
everything to start by init (controlled by
/etc/inittab) is started via this script,
there it gets from init 4 parameters, there
the last is the process (+params) to start.
So you say in this script something like
export MY_VAR=my_value
exec $4
For details, see the manual (incl. an example).
You can test this feature by switching the
runlevel, e.g.
init 3
Don't worry about, that you don't see MY_VAR
in your environment, if you now login;
the login program doesn't inherits env.vars
from init, provinding the user a fresh new
environment.
But you can easily check that the initscript works, when you setup start
script in /etc/init.d, e.g.
#!/bin/bash
# mytest
case $1 in
start) env | grep MY
;;
stop) ;;
esac
and create a link in sub-dir. rc5.d (e.g.).
Invoking now
init 5
this should prove your success...
Regards,
Tankred
Jens Kruse wrote:
> Hi,
> what is the best way to set above mentioned variable on a SuSE Server
> system so it is available after a reboot? I don't want to manipulate the
> startup-scripts provided by Tarantellea.
> I tried a few things which don't reeally satisfy me, i.e. I tried to set
> it in /etc/init.d/boot.local which does not work at all.
> TIA,
> Jens
at 2007-7-4 18:53:04 >
