Starting Services From the Command Line On SUSE Linux
Novell Cool Solutions: Trench
By Aaron Gresko
Reader Rating
from 17 ratings
|
Digg This -
Slashdot This
Posted: 1 Jun 2005 |
Software installed on a SUSE Linux system usually place startup scripts in the /etc/init.d folder. The scripts in /etc/init.d are used to start, stop, restart, and query the status of the associated service.
Red Hat users use the service command to start and stop software services. The syntax is service service_name start|stop|restart|status. Users often ask if SuSE has a service command or equivalent. Some users even go so far as to copy the service command binary from a Red Hat box and use it on the SuSE box.
Such extremes are not necessary. Even though the startup script can be evoked using its full path, for example /etc/init.d/xntpd start; the simplest way to access startup scripts is to use the rc prefix. To access a startup script from a command line, just prepend rc to the script name and pass it the appropriate start|stop|restart|status option.
For example, to start xntpd, enter the following:
linux:/boot # ls -l initrd* #rcxntpd start Starting network time protocol daemon (NTPD) done |
Reader Comments
- Although the ip has been posted before: http://support.novell.com/techcenter/tips/10015.html Regards, Evan Williams
- the command example does not show up in the printer friendly view
- This is for services with the rc(servicename) symlink, so only works for the standard installation services. Any new apps do not work and must be used from the /etc/init.d path.
- rcxntpd start; rcxntpd: command not found
- I can't read it.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
