Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:base-system:managing_services [2019/02/08 03:42] – [CLI Syntax] Wrapped into table vgaeteradocs:guide-user:base-system:managing_services [2023/10/14 05:46] – update vgaetera
Line 1: Line 1:
-===== Managing system services =====+====== Managing services =====
 +{{section>meta:infobox:howto_links#basic_skills&noheader&nofooter&noeditbutton}}
  
-LEDE system is composed of many different programs running all the time called daemons or services.\\ +===== Introduction ===== 
-The default ones are already set up in a standard installation, but you may want to change their configuration or add new ones with packages.+  * There are multiple [[docs:guide-user:services:start|services]] running on OpenWrt to perform different tasks
 +  * This how-to describes the method for managing OpenWrt services.
  
-==== CLI Syntax ==== +===== Goals ===== 
-^ Command                                  ^ Invocation for older versions                ^ Purpose ^ +  * Start, stop, restart, enable and disable system services
-| ''service''                              | ''ls /etc/init.d/''                          | print a list of available services | +  * Check if specific service is enabled and running.
-| ''service service_name''                 | ''/etc/init.d/service_name''                 | print a list of available actions for a service +
-| ''service service_name action''          | ''/etc/init.d/service_name action''          | execute that action on that service | +
-| ''service service_name action instance'' | ''/etc/init.d/service_name action instance'' | execute that action on that service instance, e.g. specific OpenVPN connection |+
  
-Technically speaking, the ''service'' command is just a wrapper for initscripts found in **/etc/init.d**.\\ +===== Web interface instructions ===== 
-The above commands are functionally identical to the following ones (respectively), they are just shorter and easier to remember.\\+Manage services using web interface. 
 +  - Navigate to **LuCI -> System -> Startup**. 
 +  - See the list of all the available services and use buttons to execute actions.
  
-==== Luci web interface ====+===== Command-line instructions ===== 
 +Manage services using command-line interface. 
 +Use the invocation column inside [[docs:guide-developer:write-shell-script|scripts]], [[docs:guide-user:base-system:hotplug|hotplug]] or [[docs:guide-user:base-system:cron|cron]]. 
 +Check [[docs:guide-user:base-system:log.essentials|syslog]] for troubleshooting.
  
-Click on **System**, then on **Startup** to land in the page listing all the available services and buttons to execute actions.+^ Command ^ Equivalent ^ Description ^ 
 +| ''service'' | ''ls /etc/init.d'' | Print a list of available services. | 
 +| ''service <service>'' | ''/etc/init.d/<service>'' | Print a list of available actions for a service. | 
 +| ''service <service> <action>'' | ''/etc/init.d/<service> <action>'' | Execute that action on a specific service. | 
 +| ''service <service> <action> <instance>'' | ''/etc/init.d/<service> <action> <instance>'' | Execute that action on a specific service instance, e.g. OpenVPN connection|
  
-==== Actions ==== +Common actions supported by most services
-The default actions supported by most services are: + 
-^ Action  ^ Description ^ +^ Action ^ Description ^ 
-**start**  | Start the service | +''start'' | Start the service
-**stop** | Stop the service | +''stop'' | Stop the service
-**restart** | Restart the service | +''restart'' | Restart the service
-**reload** | Reload configuration files (or restart if that fails+''reload'' | Reload configuration files or restart if that fails
-**enable** | Enable service autostart | +''enable'' | Enable service autostart
-**disable** | Disable service autostart |+''disable'' | Disable service autostart. | 
 +| ''enabled'' | Check if the service is enabled. | 
 +| ''running'' | Check if the service is running. |
  
-=====Available services===== 
-{{pagequery>@:docs:guide-user:services *;sort=ns,title;group;cols=1;hidestart;hidejump;display={title};filter=!name:sidebar}} 
  • Last modified: 2024/12/02 00:23
  • by mikma