Linux platform autorun

From ESS-WIKI
Revision as of 03:23, 13 February 2020 by Yanwei.cao (talk | contribs)
Jump to: navigation, search

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