19 May
2006
19 May
'06
01:31
On 18/05/06 17:48, Michael Stempf wrote:
All,
I was wondering where is the best place to put the command to start an application everytime the server starts (even if no one has logged into the system).
I would need to do 3 things...
1) export DSMSERV_DIR=/opt/tivoli/tsm/server/bin
2) export DSMSERV_CONFIG=/opt/tivoli/tsm/server/bin/dsmserv.opt
3) run dsmserv
In addition to the boot.local and runlevel suggestions, there is also the crontab method: in /etc/crontab, add an entry like this: @reboot <username> <command> where <command> is the name of a script containing the above 3 commands. The process will be started as user <username>.