9.4. Starting and Stopping Actions

Even though action scripts are normally started at boot time and stopped at shutdown, you can start or stop them at any time using Webmin. Many action scripts can also perform additional functions, such as showing the status of a server or reloading its configuration. To start or stop an action, do the following:

1.
On the main page of the module, click on the name of the action. This will take you to the action editing form shown in Figure 9.2.

2.
At the bottom of the page (in the middle) will be a row of buttons, each for running an action script to perform some function. Depending on the script there may be different buttons available, but some of the most common are:

Start Now Immediately starts the server or service. On some versions of Linux, this will do nothing if the action has already been started and the server is already running.

Stop Now Stops the server or service. In some Linux versions, this will do nothing unless the action has already been started.

Restart Now Stops and restarts the server. In many cases, this will do nothing if the action has not been started yet.

Reload Now Where available, this function tells the server started by the action to reread its configuration files.

Show Status Just displays a message telling you if the server is running or not, and if so what its PID is.

3.
After you click the button for the function that you want to perform, a page showing the output from the action script will appear. This should indicate whether the action was performed successfully or not.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.191.247