×
Autostart sapb1 servertools after reboot
To ensure SAP Business One server tools automatically restart after a server reboot, you need to configure the relevant service or script to start automatically upon system startupThis can be achieved by modifying service settings or creating a startup script that executes the necessary commands. 

reate a script by adding the following commend and make it auto run after the server reboot.


/usr/sap/hostctrl/exe/sapcontrol -nr

00 -function Start >> /

var/log/startb1.log 2>&1


Here's a breakdown of the process:
1. Linux Systems:
  • Identify the service:
    Determine the specific service responsible for the server tools. For example, it might be named sapb1servertools or b1ad.
  • Check for existing service file:
    Navigate to /etc/init.d/ and check if a corresponding service file exists (e.g., sapb1servertools).
  • Create a systemd service file (if needed):
    If a service file doesn't exist, you can create one. This involves creating a file in /etc/systemd/system/ (e.g., sapb1servertools.service) with the necessary configuration to start the service. The file should include the command to start the server tools (e.g., /etc/init.d/sapb1servertools start).
  • Enable and start the service:
    Use the following commands (assuming you've created or modified the service file):
    • sudo systemctl enable sapb1servertools.service
    • sudo systemctl start sapb1servertools.service
  • Verify:
    After the reboot, check if the service is running using sudo systemctl status sapb1servertools.service.
  • Alternative using a script:
    You can also create a startup script (e.g., /etc/rc.local) that executes the command to start the server tools. Ensure the script is executable ( chmod +x /etc/rc.local) and that it's executed during startup. 
2. Windows Systems:
  • Identify the service: Locate the service associated with the SAP Business One server tools in the Services application (search for "services.msc").
  • Configure automatic startup: Right-click on the service, select "Properties", and change the "Startup type" to "Automatic" or "Automatic (Delayed Start)".
  • Apply changes: Click "Apply" and "OK".
  • Restart: Restart the server to verify the service starts automatically. 
Important Considerations:
  • Dependencies:
    Ensure any dependencies (like the database) are also configured to start automatically if needed.
  • Error Handling:
    If the tools fail to start, investigate the logs to identify the cause of the failure.
  • Delayed Start:
    Consider using "Automatic (Delayed Start)" for the service if you experience issues with other services starting before the SAP Business One server tools.
  • SAP Notes:
    Refer to relevant SAP Notes for specific instructions related to your SAP Business One version and environment. 
×

Notice!!

All Quantic user are requested to use our hybrid cloud drive for you project and Data base . We had added new module of cronjob to schedule and optimise your backup .