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
docs:user-guide:services [2018/02/17 16:53] bobafetthotmaildocs:guide-user:base-system:managing_services [2024/12/02 00:23] (current) – [Command-line instructions] invocation column -> equivalent column mikma
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 ===== 
 +  * Start, stop, restart, enable and disable system services. 
 +  * Check if a specific service is enabled and running.
  
-''service'' will print a list of available services+===== Web interface instructions ===== 
 +Manage services using web interface. 
 +  - Navigate to **LuCI -> System -> Startup**. 
 +  - See the list of all the available services and use buttons to execute actions.
  
-''service service_name'' will print a list of available actions for a service+===== Command-line instructions ===== 
 +Manage services using command-line interface. 
 +Use the "equivalent" 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.
  
-''service service_name action'' will execute that action on that service+^ 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. |
  
-Technically speaking, the ''service'' command is just a wrapper for initscripts found in **/etc/init.d**.\\ +Common actions supported by most services.
-The above commands are functionally identical to the following ones (respectively), they are just shorter and easier to remember.\\ +
-''ls /etc/init.d/''\\ +
-''/etc/init.d/service_name''\\ +
-''/etc/init.d/service_name action''\\+
  
-==== Luci web interface ====+^ Action ^ Description ^ 
 +| ''start'' | Start the service. | 
 +| ''stop'' | Stop the service. | 
 +| ''restart'' | Restart the service. | 
 +| ''reload'' | Reload configuration files or restart if that fails. | 
 +| ''enable'' | Enable service autostart. | 
 +| ''disable'' | Disable service autostart. | 
 +| ''enabled'' | Check if the service is enabled. | 
 +| ''running'' | Check if the service is running. | 
 +| ''status'' | Service status. | 
 +| ''trace'' | Start with syscall trace. | 
 +| ''info'' | Dump procd service info. |
  
-Click on **System**, then on **Startup** to land in the page listing all the available services and buttons to execute actions. 
- 
-==== Actions ==== 
-The default actions supported by most services are: 
-^ Action  ^ Description ^ 
-| **start**  | Start the service | 
-| **stop** | Stop the service | 
-| **restart** | Restart the service | 
-| **reload** | Reload configuration files (or restart if that fails) | 
-| **enable** | Enable service autostart | 
-| **disable** | Disable service autostart | 
- 
-=====Available services===== 
-{{pagequery>@:docs:user-guide:services *;sort=ns,title;group;cols=1;hidestart;hidejump;display={title};filter=!name:sidebar}} 
  • Last modified: 2024/12/02 00:23
  • by mikma