Return to Snippet

Revision: 67487
at February 20, 2015 23:21 by biiont


Updated Code
# 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

Revision: 67486
at September 27, 2014 02:13 by biiont


Initial Code
# 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; 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 2 3 4 5 6; do ln -s ../init.d/chartsrv /etc/rc.d/rc$i.d/K99chartsrv; done

Initial URL

                                

Initial Description
Add init.d to some runlevels

Initial Title
Add init.d to default runlevels

Initial Tags

                                

Initial Language
Bash