services:starting_a_service
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:starting_a_service [2016/07/06 09:37] – peter | services:starting_a_service [2019/12/04 20:41] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Services - Starting a service ====== | ||
- | |||
- | The recommended method to use it | ||
- | |||
- | ===== Using systemctl ===== | ||
- | |||
- | **systemctl** only works on **systemd** based Ubuntu like version 16.04 LTS and above. | ||
- | |||
- | <code bash> | ||
- | systemctl start service_name.service | ||
- | </ | ||
- | |||
- | |||
- | ===== Using Sys V ===== | ||
- | |||
- | With **sysv-rc-conf** or **sysvconfig** under Debian or Ubuntu Linux. | ||
- | |||
- | <code bash> | ||
- | / | ||
- | </ | ||
- | |||
- | |||
- | ===== Using Service ===== | ||
- | |||
- | **service** works in most Linux distributions including Debian and Ubuntu. | ||
- | |||
- | <code bash> | ||
- | service service_name start | ||
- | </ | ||
- | |||
- | |||
- | ===== Using Upstart ===== | ||
- | |||
- | **upstart** only works on certain version of Ubuntu. | ||
- | |||
- | <code bash> | ||
- | invoke-rc.d service_name start | ||
- | </ | ||
services/starting_a_service.1467797864.txt.gz · Last modified: 2020/07/15 09:30 (external edit)