Difference between revisions of "Linux platform autorun"

From ESS-WIKI
Jump to: navigation, search
(Created page with "coming soon")
 
Line 1: Line 1:
coming soon
+
= sysvinit =
 +
<div>1. use runlevel cmd to get current runlevel,eg:runlevel is 5<br/></div><div>2. <br/></div>
 +
= systemd =
 +
<div>1.create and edit /opt/test-service.sh
 +
2.create and edit /etc/systemd/system/test_service.service
 +
 
 +
3.use systemctl cmd to enable service
 +
 
 +
systemctl enable test_service.service
 +
</div>

Revision as of 03:23, 13 February 2020

sysvinit

1. use runlevel cmd to get current runlevel,eg:runlevel is 5
2.

systemd

1.create and edit /opt/test-service.sh

2.create and edit /etc/systemd/system/test_service.service

3.use systemctl cmd to enable service

systemctl enable test_service.service