[OpenWrt Wiki] Managing services (https://openwrt.org/lib/exe/opensearch.php) (OpenWrt Wiki) (https://openwrt.org/) (https://openwrt.org/docs/guide-user/base-system/managing_services?do=index) (Sitemap) (Recent Changes) (https://openwrt.org/feed.php) (Current namespace) (https://openwrt.org/feed.php?mode=list&ns=docs:guide-user:base-system) (Plain HTML) (https://openwrt.org/_export/xhtml/docs/guide-user/base-system/managing_services) (Wiki Markup) (https://openwrt.org/_export/raw/docs/guide-user/base-system/managing_services) (https://openwrt.org/docs/guide-user/base-system/managing_services) (https://openwrt.org/uk/docs/guide-user/base-system/managing_services) (https://openwrt.org/docs/guide-user/base-system/managing_services) (https://openwrt.org/start) (OpenWrt Wiki) (OpenWrt Wiki) OpenWrt Wiki (Search) ([F]) (Search) (https://openwrt.org/docs/guide-user/base-system/managing_services) Tools (https://openwrt.org/docs/guide-user/base-system/managing_services) (Translations of this page) Translations of this page (https://openwrt.org/docs/guide-user/base-system/managing_services?do=login§ok=) (Log In) Log In You are here (https://openwrt.org/start) (start) Home (https://openwrt.org/docs/start) (docs:start) Documentation (https://openwrt.org/docs/guide-user/start) (docs:guide-user:start) User guide (https://openwrt.org/docs/guide-user/base-system/start) (docs:guide-user:base-system:start) Base system (https://openwrt.org/docs/guide-user/base-system/managing_services) (docs:guide-user:base-system:managing_services) Managing services Learn about OpenWrt Learn about OpenWrt (https://openwrt.org/supported_devices) (supported_devices) Supported devices (https://openwrt.org/packages/start) (packages:start) Packages (https://openwrt.org/downloads) (downloads) Downloads (https://openwrt.org/docs/start) (docs:start) Documentation (https://openwrt.org/docs/guide-quick-start/start) (docs:guide-quick-start:start) Quick start guide (https://openwrt.org/docs/guide-user/start) (docs:guide-user:start) User guide (https://openwrt.org/docs/guide-developer/start) (docs:guide-developer:start) Developer guide (https://openwrt.org/docs/guide-developer/security) (docs:guide-developer:security) Security (https://openwrt.org/faq) (faq) FAQ (https://forum.openwrt.org/) (https://forum.openwrt.org/) Forum Contributing (https://openwrt.org/submitting-patches) (submitting-patches) Submitting patches (https://openwrt.org/bugs) (bugs) Reporting bugs (https://openwrt.org/wiki/wikirules) (wiki:wikirules) Contributing to wiki Project (https://openwrt.org/about) (about) About OpenWrt (https://openwrt.org/rules) (rules) Rules (https://openwrt.org/infrastructure) (infrastructure) Infrastructure (https://openwrt.org/donate) (donate) Donate (https://openwrt.org/merchandise) (merchandise) Merchandise (https://openwrt.org/wiki/start) (wiki:start) Website (https://openwrt.org/trademark) (trademark) Trademark policy (https://openwrt.org/license) (license) License (https://openwrt.org/contact) (contact) Contacts (https://openwrt.org/docs/guide-user/base-system/managing_services?do=edit) (Show pagesource [v]) Show pagesource (https://openwrt.org/docs/guide-user/base-system/managing_services?do=revisions) (Old revisions [o]) Old revisions (https://openwrt.org/docs/guide-user/base-system/managing_services?do=backlink) (Backlinks) Backlinks (Back to top [t]) Back to top (Table of Contents) Table of Contents Managing services Introduction Goals Web interface instructions Command-line instructions Managing services This article relies on the following: Accessing (https://openwrt.org/docs/guide-quick-start/walkthrough_login) (docs:guide-quick-start:walkthrough_login) web interface / (https://openwrt.org/docs/guide-quick-start/sshadministration) (docs:guide-quick-start:sshadministration) command-line interface Managing (https://openwrt.org/docs/guide-user/base-system/uci) (docs:guide-user:base-system:uci) configs / (https://openwrt.org/docs/guide-user/additional-software/managing_packages) (docs:guide-user:additional-software:managing_packages) packages / (https://openwrt.org/docs/guide-user/base-system/managing_services) (docs:guide-user:base-system:managing_services) services / (https://openwrt.org/docs/guide-user/base-system/log.essentials) (docs:guide-user:base-system:log.essentials) logs Introduction There are multiple (https://openwrt.org/docs/guide-user/services/start) (docs:guide-user:services:start) services running on OpenWrt to perform different tasks. This how-to describes the method for managing OpenWrt services. Goals Start, stop, restart, enable and disable system services. Check if a specific service is enabled and running. 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. Command-line instructions Manage services using command-line interface. Use the “equivalent” column inside (https://openwrt.org/docs/guide-developer/write-shell-script) (docs:guide-developer:write-shell-script) scripts , (https://openwrt.org/docs/guide-user/base-system/hotplug) (docs:guide-user:base-system:hotplug) hotplug or (https://openwrt.org/docs/guide-user/base-system/cron) (docs:guide-user:base-system:cron) cron . Check (https://openwrt.org/docs/guide-user/base-system/log.essentials) (docs:guide-user:base-system:log.essentials) syslog for troubleshooting. Command Equivalent Description service ls /etc/init.d Print a list of available services. service /etc/init.d/ Print a list of available actions for a service. service /etc/init.d/ Execute that action on a specific service. service /etc/init.d/ 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 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. This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.OK (https://en.wikipedia.org/wiki/HTTP_cookie) More information about cookies Last modified: (2024/12/02 00:23) 2024/12/02 00:23 by mikma Self-registration in the wiki has been disabled.If you want to contribute to the OpenWrt wiki, please post (https://forum.openwrt.org/t/applying-for-openwrt-wiki-account/101671) (https://forum.openwrt.org/t/applying-for-openwrt-wiki-account/101671) HERE in the forum or ask on IRC for access. (https://creativecommons.org/licenses/by-sa/4.0/deed.en) (CC Attribution-Share Alike 4.0 International) (cc) (by) (sa) Except where otherwise noted, content on this wiki is licensed under the following license:(https://creativecommons.org/licenses/by-sa/4.0/deed.en) (CC Attribution-Share Alike 4.0 International) CC Attribution-Share Alike 4.0 International (skip to content)