Managing services

  • There are multiple services running on OpenWrt to perform different tasks.
  • This how-to describes the method for managing OpenWrt services.
  • Start, stop, restart, enable and disable system services.
  • Check if a specific service is enabled and running.

Manage services using web interface.

  1. Navigate to LuCI → System → Startup.
  2. See the list of all the available services and use buttons to execute actions.

Manage services using command-line interface. Use the “equivalent” column inside scripts, hotplug or cron. Check syslog for troubleshooting.

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
start Start the service.
stop Stop the service.
restart Restart the service.
reload If the service supports this operation (usually by sending SIGHUP signal) then reload configuration files on the fly without stopping. Otherwise if the service does not implement reload then make a full restart (stop then start).
enable Enable service autostart on device reboot.
disable Disable service autostart on device reboot.
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.
  • Last modified: 2026/09/23 13:29
  • by stokito