linux:centos:services
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:centos:services [2018/03/03 20:17] – odefta | linux:centos:services [2023/07/04 16:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Create service file for an application ====== | ====== Create service file for an application ====== | ||
| - | | + | We'll use phabricator app as example. It should run after the mysql database was started. |
| | | ||
| - | | + | Create the file phabricator-phd.service in **/ |
| | | ||
| <file txt phabricator-phd.service> | <file txt phabricator-phd.service> | ||
| Line 25: | Line 25: | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| </ | </ | ||
| + | |||
| + | Enable it at startup: | ||
| + | |||
| + | systemctl enable phabricator-phd.service | ||
| + | |||
| + | Run it: | ||
| + | |||
| + | systemctl start phabricator-phd | ||
| + | |||
linux/centos/services.1520108277.txt.gz · Last modified: (external edit)
