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/04/16 10:52] – [Managing services] vgaeteradocs:guide-user:base-system:managing_services [2023/10/14 05:46] – update vgaetera
Line 1: Line 1:
 ====== Managing services ====== ====== Managing services ======
-<WRAP info> +{{section>meta:infobox:howto_links#basic_skills&noheader&nofooter&noeditbutton}}
-This article relies on the following: +
-  * [[docs:guide-quick-start:webadmingui|Accessing OpenWrt via WebUI]] +
-  * [[docs:guide-quick-start:sshadministration|Accessing OpenWrt via CLI]] +
-</WRAP>+
  
 ===== Introduction ===== ===== Introduction =====
-  * There are multiple processes running on OpenWrt to perform different tasks. +  * There are multiple [[docs:guide-user:services:start|services]] running on OpenWrt to perform different tasks. 
-  * This guide describes how to manage system services via WebUI or CLI.+  * This how-to describes the method for managing OpenWrt services.
  
 ===== Goals ===== ===== Goals =====
   * Start, stop, restart, enable and disable system services.   * Start, stop, restart, enable and disable system services.
 +  * Check if a specific service is enabled and running.
  
-===== Web interface ===== +===== Web interface instructions ===== 
-Log in the system using LuCI and manage packages via WebUI+Manage services using web interface
-  - Navigate to **[[http://openwrt.lan/|LuCI]] -> System -> Startup**.+  - Navigate to **LuCI -> System -> Startup**.
   - See the list of all the available services and use buttons to execute actions.   - See the list of all the available services and use buttons to execute actions.
  
-===== Command-line interface ===== +===== Command-line instructions ===== 
-^ Command ^ Invocation ^ Description ^ +Manage services using command-line interface
-| ''service'' | ''ls /etc/init.d/'' | Print a list of available services | +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]]
-''service servicename'' ''/etc/init.d/servicename'' | Print a list of available actions for a service | +Check [[docs:guide-user:base-system:log.essentials|syslog]] for troubleshooting.
-| ''service servicename action'' ''/etc/init.d/servicename action'' | Execute that action on that service | +
-| ''service servicename action instance'' | ''/etc/init.d/servicename action instance'' Execute that action on that service instance, e.g. specific OpenVPN connection. |+
  
-The default actions supported by most services.+^ 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. | 
 + 
 +Common actions supported by most services.
  
 ^ 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. | 
-See also: [[docs:guide-user:services:start|Available services]] +| ''running'' | Check if the service is running. |
- +
-{{tag>How-To Services}}+
  
  • Last modified: 2024/12/02 00:23
  • by mikma