linux centos7 at startup program realization

1 storage location /etc/init.d/ServerManagerCLI.sh script is the script of their new details, see 2
Increased execute permissions chmod + x /etc/rc.d/init.d/ServerManagerCLI.sh
cd /etc/init.d/
chkconfig --add ServerManagerCLI.sh
chkconfig ServerManagerCLI.sh on
chkconfig --list
2 script content
#!/bin/sh
#chkconfig: 2345 80 90
#descriptiong:auto ServerManagerCLI
# To directory execution
cd /goldendsp/GoldenDSP_Linux_x64_3.0.10516.0
# To achieve startup command
./ServerManagerCLI -o
3 reboot testing
ps -aux to see if there is this random process initiated
Too many processes using ps -aux | grep xxx --xxx for the process name

Guess you like

Origin www.cnblogs.com/songhuan999999/p/11769480.html