Startup Scrpts

From: paul lawrence (paul.lawrence_at_canbet.co.uk)
Date: 01/31/05

  • Next message: Bob Chiodini: "Re: [OT] Layer 3 switching and vlans"
    To: <fedora-list@redhat.com>
    Date: Mon, 31 Jan 2005 17:24:12 -0000
    
    
    

    Hi,
    I am new to the world of linux, for my sins I have been entirely a Microsoft
    person; untill now, and I need some advice on how to do something.
     
    I have a server running Fedora Core 3, with Resin.
     
    I want to be able to create a startup script that will set some environment
    variables for Java, start up Resin and the call two custom scripts I have
    been given. I have been playing around with a file called resin-a.sh which
    a web site suggested creating to run the commands I want.
     
    >From a promt, if I type the following the variables are set OK, but if I
    include them in the resin-a.sh file and type sh resin-a.sh they are not
    set.
     
    export set JAVA_HOME=/usr/java/j2sdk1.4.2_06
    export set RESIN_HOME=/usr/local/resin
    export set PATH=$PATH:/usr/java/j2sdk1.4.2_06/bin
     
     
    I also want to somehow include in this script a startup command for httpd.sh
    to start the resin web server and also to call to other scripts.
     
     
    Any help would be much appreciated, as I said I am completely new to this
    and its a little confusing.
    Regards
    Paul

    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Bob Chiodini: "Re: [OT] Layer 3 switching and vlans"

    Relevant Pages

    • Re: Xcopy not working in startup script
      ... This is a basic batch file script that I am ... deploying through group policy in the startup script to copy ... it works fine on it's own, but when deployed through group policy it ... the permissions of the computer object elsewhere in the domain. ...
      (microsoft.public.windows.server.general)
    • Re: Ooooopppps. Rights not right...
      ... Use a log in script to call a compiled file stored on a share. ... > because the classid is for per machine instead of per user. ... > you have create two user classes, one is called student; ... > Put this bat file to the computer startup script in the local group policy. ...
      (microsoft.public.windows.server.general)
    • Re: Power Management GPO?
      ... I suspect that the power management subsystem might not be started when the startup scripts runs or the SYSTEM context can't modify it, but I have some ideas about this and will do some testing later on today to work it out. ... I created a GPO and put the batch file in first as a startup script and when that didn't work I tried it as a logon script. ... A normal user can't change the power settings so a logon script like this won't work either. ... I can't remember if all power setting are per machine, but if some are per machine and some are per user then you could split it up into 2 scripts, one startup script and one logon script. ...
      (microsoft.public.windows.group_policy)
    • Re: Xcopy not working in startup script
      ... This is a basic batch file script that I am ... deploying through group policy in the startup script to copy ... I'm deploying it during the ... the permissions of the computer object elsewhere in the domain. ...
      (microsoft.public.windows.server.general)
    • RE: Set default printer based on room location
      ... done with a "Startup Script" Batch file or with KIX Script. ... if JoeA logs on to a PC in suite A the network printer A is assigned ... > but then if he goes across to suite B network printer b is assigned. ...
      (microsoft.public.windows.server.active_directory)