add service to "system services list"?
two questions about the following script i created
Code:
#!/bin/bash first question, how could this perhaps be made more efficient second of all, i put it in /etc/rc.d/init.d and linked it to the proper names in the /etc/rc.d/rcX.d directories, how do i get it to appear under "system services" within the "setup" program so it can start and stop on runlevel change? opps, third, how do i get it to say starting lcd [ OK ] or [ FAIL ] and stoping lcd [ OK ] or [ FAIL ] when invoked? |
the file /etc/rc.d/rc.sysinit has all that ok/failed stuff,
shuffle it into there or put it into rc.5. |
chkconfig --add servicename
that rc[X].d stuff is for chkconfig
the setup program is a front for chkconfig try... chkconfig --add servicename where servicename is the name of the script you added to /etc/rc.d/init.d not sure about the [ok] stuff. chkconfig --help is useful. |
All times are GMT -5. The time now is 11:29 PM. |