User Tools

Site Tools


linux:centos:services

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:centos:services [2018/03/03 22:17] odeftalinux:centos:services [2018/03/03 22:20] odefta
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.+We'll use phabricator app as example. It should run after the mysql database was started.
      
-  Create the file phabricator-phd.service in **/usr/lib/systemd/system/** folder.+Create the file phabricator-phd.service in **/usr/lib/systemd/system/** folder.
      
 <file txt phabricator-phd.service> <file txt phabricator-phd.service>
Line 25: Line 25:
 WantedBy=multi-user.target WantedBy=multi-user.target
 </file> </file>
 +
 +Enable it at startup:
 +
 +  systemctl enable phabricator-phd.service
 +
 +Run it:
 +
 +  systemctl start phabricator-phd
 +
  
linux/centos/services.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1