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 [2021/03/05 01:18] – [Command-line interface] optimize formatting vgaeteradocs:guide-user:base-system:managing_services [2023/10/14 05:46] – update vgaetera
Line 8: Line 8:
 ===== 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 =====
 Manage services using web interface. Manage services using web interface.
   - Navigate to **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 =====
 Manage services using command-line interface. 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]]. 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. Check [[docs:guide-user:base-system:log.essentials|syslog]] for troubleshooting.
  
-^ Command ^ Invocation ^ Description ^ +^ Command ^ Equivalent ^ Description ^ 
-| ''service'' | ''ls /etc/init.d'' | Print a list of available services | +| ''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>'' | ''/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>'' | ''/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 |+| ''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. 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. | 
 +| ''running'' | Check if the service is running. |
  
  • Last modified: 2024/12/02 00:23
  • by mikma