/ Published in: Bash
Add init.d to some runlevels
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# List installed runlevels ls /etc/rc.d/rc?.d/*chartsrv # Remove from any runlevels rm /etc/rc.d/rc?.d/*chartsrv # Install to start at runlevels 2 3 4 for i in 2 3 4 5; do ln -s ../init.d/chartsrv /etc/rc.d/rc$i.d/S99chartsrv; done # Install to stop at all runlevels for i in 0 1 6; do ln -s ../init.d/chartsrv /etc/rc.d/rc$i.d/K99chartsrv; done