Apachectl not start automatically through script when system start or rebot

Dear Members,
We are working on Red Hat Advanced Server 2.1 , when we give manual command from Red Hat 9 machine which we have written in script it's started but from script it has no working. One more thing How to start it from Windows machine if we give manual command ?
e.g. From Red Hat 9 machine we gave under command
telnet 202.202.202.1 -l oracle1
then give password
OH1/Apache/Apache/bin/apachectl start - it's started.
e.g. From windows machine it gave message that http could not be started.
The same message in the script also. So we need it would be start from script .
I am giving my script file as under. Temp. put comment before command at apachectl start.
# dbora file to startup database
#!/bin/sh
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
#ORA_HOME=/u01/app/oracle/product/9.2.0.1.0
ORA_HOME=/ora9isoft/odb/OH1
ORA_OWNER=oracle1
#ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl\ start
read -p "wait ..." -n 0 -t 3
echo ""
# su - $ORA_OWNER -c $ORA_HOME/Apache/Apache/bin/apachectl start
# su - $ORA_OWNER -c "$ORA_HOME/Apache/Apache/bin/apachectl start"
read -p "wait ..." -n 0 -t 3
echo ""
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
# su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl\ stop
# su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
esac
So what can we do now ?
Regards
Vipul Patel

You're running a 'postscript' file in the Installer ?
If I understand you correctly I think this page will help:
http://stackoverflow.com/questions/5449135/how-can-a-cocoa-application-add-itsel f-as-a-global-login-item

Similar Messages

  • EDI Outbound file trigger not happening automatically.unix script

    EDI OUT bound issue:-
    We are processing IDOC by using WE19 -> Here we are selecting existing IDOC -> By using pushbutton Start Outbound Processing the IDOC EDI file is creating in directory with file name as:- /abc/xyz/edi/DECVDE_989898.
    In the same directory we have unix script file push_idoc_sci.sh is available which sends this EDI file to unix server.This script is working fine when we do manual sending of edi file - there is no issue in the script.
    1> We configured the port SAPEDI which sends this EDI file automatically by using this script file. But this is not happening.
    WE21 settings:-
    Outbound file TAB:- Phycal directory -> /abc/xyz/edi/
                                     Function module: EDI_PATH_CREATE_MESTYP_DOCNUM
    Outbound Trigget TAB:-
                                    Automatic Start Possible check box checked.
                                    RFC destination -- SERVER_EXCE.
                                    Directory-- /abc/xyz/edi/
                                    Command file -- push_idoc_sci.sh
    Inbound file TAB:- Phycal directory -> /abc/xyz/edi/ in
                                 FM -- EDI_PATH_CREATE_CLIENT_DOCNUM
    2> RFC destination TCP/IP connections:- SERVER_EXEC configured with parameters:
         Application server :- Program: rfcexec.
    The Issues is EDI file is creating in applicastion server, but it is not going automatically to unix server as automated process. even we mentoned the script in port defination to send automatically.
    Is there any we are missing? any seetings do we need to do extra?
    Please let us know.
    Thanks in advance.
    Sreedhara.

    Hi Hi sreedhara gupta
    what REDDY said is correct. Still you if you want test by using WE19 ....Put break point at include MSED7F03 at  IF direction_in <> c_direct_incoming.
    change the value of  control_record_in-outmod to 1 or 3.
    Note: Imp thing is............. there is a chase of missing segments which are requied in EDI Subsystem.
    Thanks
    Ramesh
    Edited by: Ramesh on Mar 26, 2010 7:07 PM

  • Your profile option does not allow automatic numbering error when trying to load BSA

    We are getting this error while trying to load BSAs. The profile option is set to always at the responsibility level,
    The same code and settings were tested in lower instances and it went through fine
    Document sequence is set correctly.
    Any inputs to resolve this issue would be greatly appreciated. It has stopped out production Data conversi
    Thanks
    R

    Hi Winsky,
    Ensure Profile: Sequential Numbering must be set to: 'Partially Used' at app level
    Refer the following note and check whether it helps:
    I Get The Error: Your Profile Option Does Not Allow Automatic Numbering. [ID 560388.1]
    In Order Import stuck record with error "Your Profile Option Does Not Allow Automatic Numbering" [ID 1083645.1]
    Best Regards,

  • Run script when system shutdown

    Hi Community,
    I know the possibility in snow leopard to execute a script during system boot by using a launchd script located in /Library/LaunchDeamons or ~/Library/LaunchAgents but how can I configure a script which become executed on a system shutdown?
    Thanks in advance & Bye Tom

    Well then that is /etc/rc.local.shutdown that I believe you want. It won't trigger a shutdown, but on next restart, your commands will have been done. I just made a text file for /etc/rc.local.shutdown to cp from one file to another. Then I restarted manually and file was copied.
    http://discussions.apple.com/thread.jspa?threadID=2214781&start=0&tstart=0
    http://discussions.info.apple.com/message.jspa?messageID=11226121
    http://www.google.com/search?rls=ig&hl=en&source=hp&q=rc.shutdown.localonmac&aq=f&aqi=&aql=&oq=&gsrfai=Cd4_sLWFETIzHK4zEiQOP4fjFCQAAAKoEBUQoQO5

  • Bank statement balances is not clearde automatically through BDC.

    Dear Friends,
    We are using Manual BRS in our client. For this Our client has requested to update the statement automatically.
    For this we did a BDC progrm to update the statement. BDC program working fine. Because subledger account and main account gets updated.
    But subledger account balances is not getting clear autamatiaclly.
    Ex: when we pass the check to the vendos by using f-53, systom will generate the accounting entry is....
    Vendor account Dr
       To Check issued accout.
    If check has been clear by bank, systom automaticallu pass the entry........
    Check issued account Dr (ff67 or BDC)
       To Main bank account.
    But while updating the statement through BDC, Systom is upadteing the amounts but those balances is not cleared.
    If it is cleared by subledger, we can easyly find out unrecosiled item by subledger account wise.
    Please give me possible sollution.
    Regards,
    Dudekula.

    Hi Bramhiaah,
    You could add the Intepretation Algorithm .i.e rule for clearing in IMG in the same T-code that you create Manual Statement transactions.
    Bank Accounting-> Payment Transactions->Manual bank Statement -> Create/ Assign Business Transactions
    Select the Int Algrthm that you want to use for each transaction.
    In FF67 the same CHECT_KF field can be used to match different fields on the customer document. example the Bank Reference field or CHECT_KF  field can match with check number on the customer document or with the Payorder number depending on the Int Algorthm used for that transaction.
    Please refer to the following link from SAP help site. This gives details of how the Int Algorthm works. Although this documentation is in reference to Electronic Statements, it will help you analyse which Int Algo and how to use it for manual Bank statement. The Int alogrhtms are the same for Electronic as well as manual. The reference field XBLNR is used in several algorthms eg: 001, 021, 026 etc. You can read the documentation and find out the one most suitable.
    On the following link, on the left pane, click on ' Electronic Account Statement (FI-BL)->Using Electronic account statement-> Importing the account statement->Interpreting the Note to payee fields->Interpretation algorithms '
    Link:[http://help.sap.com/saphelp_erp60_sp/helpdata/en/43/0bd87b43de11d1896f0000e8322d00/frameset.htm]
    Hope this helps.
    Thanks & Regards,
    Uma

  • ITunes should not route audio through EQ when routing to AirTunes speakers

    I just got a 2nd AirPort Express to use as AirTunes speakers. It's plugged into our very nice AV receiver via optical cable, so the sound quality should be as good as it can get with this sort of wireless setup. But, the audio is being EQd by iTunes, using the custom EQ setting I've created for the speakers I use at the computer. This is wrong. iTunes offers a way to easily switch between "speakers", but no way to pair up EQ settings with each. It should use the current EQ setting when routing sound to the computer it's running on, but either use no EQ or a preselected EQ when routing sound to any AirTunes speakers.
    Why would it EQ the audio going to some unknown audio device that's plugged into the AirPort Express, most likely in another room where it would be impossible to even begin to EQ it by ear from back at the computer?
    So, is there any way to do this now? If not, I'm sending feedback and logging a radar so they'll correct this huge oversight.

    Our cordless phones are 5.8GHz.
    Some cordless phones also use 2.4GHz for paging between handset and base station.
    Can it happen
    that interference only shows up with multiple
    speakers selected?
    Due to the bandwidth requirements possibly. Streaming a single audio stream is less bandwidth intensive then streaming multiple audio streams.
    If you were trying to stream video you may find the same thing.
    As long as we're talking about possible sources of
    interference, we do have two 802.11b networks in the
    house. Could that be the issue?
    Yes.
    What channels are the three wireless networks on?
    iFelix

  • Why the event not added automatic into ical when receive a meeting from outlook?

    Hi,
    I'm using ical 4.0.4 and when I receive a meeting from outlook, there is no event added into ical. However, in my ios device, it works pretty well.
    Could anyone help me? Whether this is the issue of the ical(version 4.0.4)?
    Thank you.
    p.s.It works well in ical versions which are higher than 4.0.4.

    Hi,
    I'm using ical 4.0.4 and when I receive a meeting from outlook, there is no event added into ical. However, in my ios device, it works pretty well.
    Could anyone help me? Whether this is the issue of the ical(version 4.0.4)?
    Thank you.
    p.s.It works well in ical versions which are higher than 4.0.4.

  • CACHE NOT UPDATIN AUTOMATICALLY

    HI
    WHEN I DO MONITORING IN    <b>SXMB_MONITOR</b>
    I SEE MESSAGE WITH ERROR:
    Error cateory  :  XICACHE
    ERROR ID       :  UPDATE
    REASON IS CACHE CONTENTS ARE NOT UPDATING AUTOMATICALLY..
    WHEN I SEE IN <b>SXI_CACHE</b>
    IT SHOWS cACHE CONTENTS ARE NOT UPDATED AUTOMATICALLY...
    WE NEED TO MANUALLY REFRESH IT EVERYTIME USING DELTA REFRESH.
    WHERE SHOULD I MAKE SETTINGS, SO THAT CACHE CONTENTS COULD GET REFRESH AUTOMATICALLY..
    REGARDS
    VIJAY RAHEJA

    Hi Vijay,
    This happens as when you do a delta refresh only the objects in the changes are activated and refreshed.So delta cache refresh works and when you do the entire cache refresh there should have been some inconsistent objects or role problems.
    There is a cache trouble shooting guide.please follow that and going through the following weblogs will be useful to you.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2633. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2754. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Both will be very useful.

  • OSX 10.6 .8 -- Firefox automatically starts when I boot up (MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options. Don't know where else to look.

    How do I keep Firefox automatically starts when I boot up (OSX 10.6 .8 -- MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options.

    Hi fullrun-
    Once Firefox is open, you should be able to open the Right click context menu on the icon. From there you select 'Options' and then de-select 'Open at Login'. Hope that helps.

  • When starting FireFox, a message is displayed "script error" message related to Chrome - FireFox will not start regardless of the answer I select - how can I get FireFox to display so I can turn off all plug-ins? Safe Mode does the same thing.

    This problem isn't on this system - but a system I support at our church.
    When FireFox is started the first display is the message "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://tavgp/content/libs/include.js:1101". There are two option buttons - Continue and Stop Script. Selecting either button closes that window - BUT the FireFox window is never displayed.

    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    *Download the full Firefox installer and save the file to the desktop<br>https://www.mozilla.org/en-US/firefox/all/
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove "personal data" when you uninstall your current Firefox version, because this will remove all profile folders and you lose personal data like bookmarks and passwords including data in profiles created by other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) "C:\Program Files\Mozilla Firefox\"
    *(64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure NOT to remove personal data when you uninstall Firefox as that will remove all Firefox profile folders and you lose your personal data.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Not start automatically my application  when the computer starts

    Hello sir,
    I create a desktop application for Mac x. My requirements is to start application when system starts.The execution file is **.command. create plist file on ~/Library/LaunchAgents/**.plist. But they won't start automatically.
    This my script
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>Printapp</string>
    <key>OnDemand</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
    <string>/bin/bash</string>
    <string>/Users/apple/printapp/bin/print.command</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    anything wrong in this script?...i don't have permission for run as root user.

    You're running a 'postscript' file in the Installer ?
    If I understand you correctly I think this page will help:
    http://stackoverflow.com/questions/5449135/how-can-a-cocoa-application-add-itsel f-as-a-global-login-item

  • IIS Issue:when trying to download code from AWS S3 and deploy in IIS server using Power Shell script while Windows startup Default Application pool is not started.

    Hi,
    I am trying to launch Amazon EC2 windows server 2008 R2 instance using AWS Auto Scaling feature. I have used cusmized AMI in Autoscaling Launch configuration to launch an instance.I have placed Power Shell script in AMI. 
    The responsibility of script is to download code from AWS S3 and deploy in IIS server while windows startup first time.
    When i check status, IIS is started succesfully. But default Application pool is not started.
    To resolve this issue i have written one scheduled script. It helps to start the application pool if any application pool is in stopped state.
    After this Application pool is started but i am not able to communicate with IIS server through browser.  
    Please help any one to resolve this issue.
    Thanks in advance

    Hi Vchreddy,
    For the IIS issue, we recommend you can post in IIS forum for more effective support:
    http://forums.iis.net/
    Thanks for your understanding.

  • Error msg like :ORACLE not started when login through SQL Tool

    Hi All,
    When i login through SQL TOOL (either sysdba/system/scott... any user) the error msg like ORACLE not started ....
    so i check the services from controlpanel->administraive tools->services ->Oralceservice<dbname> service ... so in this service is in manual & starting but not started.....
    This happen becoz i stated in manual first time & now i change it then it display as strating not started.....
    pls. if u have any solution related to this service infrom me...
    Thx

    Make your instance service in the windows services as auto start. However, if it show starting not started, just stop and start again. Otherwsie, shutdown your windows and start it again.
    Jaffar

  • Workflow does not start when PowerShell Script is run from Task Scheduler

    I have a PS script that updates an item in a SP2010 list so that a workflow will be started.  When I run the PS script manually from the PS window on the server it resides, the script runs flawlessly.  If I set a scheduled task on the same server
    to run the script with the same credentials as are being used in the PS window, the script runs, updated the info on the list, but DOES NOT start the workflow.  As we know, SPD workflows cannot be started by anonymous or system accounts.  It is as
    if the task scheduler adds a bit of information that makes the SP2010 list think the information was updated by one of these accounts even though the field in the list for the item being updated shows the correct account.
    HELP!!!
    D

    Hi,
    The issue might be related to the script or schedule task settings your configured. You’d better check the settings.
    For example, which option do you set to run the scheduled task? You may select “Run whether user is logged on or not” instead of “run only when user is logged on” as shown in this article:
    http://blog.pointbeyond.com/2010/04/23/run-powershell-script-using-windows-server-2008-task-scheduler/
    Hope it helps.
    Best Regards,
    Sally Tang

  • Microsoft word opens automatically when I start my computer. How do I turn it off so it will not start up when I turn on my computer?

    Microsoft word opens automatically when I start my computer. How do I turn it off so it will not start up when I turn on my computer?
    janer

    Go to System Preferences>Accounts and then select your account, then startup items, remove Word from the list and reboot, you should be fine then.

Maybe you are looking for