LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   difference between "service smb restart" and "/etc/rc.d/init.d/smb" (https://www.linuxquestions.org/questions/linux-software-2/difference-between-service-smb-restart-and-etc-rc-d-init-d-smb-520282/)

powah 01-17-2007 05:42 PM

difference between "service smb restart" and "/etc/rc.d/init.d/smb"
 
What is the difference between
service smb restart
and
/etc/rc.d/init.d/smb restart?

Matir 01-17-2007 06:17 PM

I've never seen /etc/rc.d/init.d/smb restart, but /etc/init.d/smb restart. In any case, the point is that both effectively do the same thing, but the "service" way is more Red-Hat oriented, whereas /etc/init.d is used more by Debian and derivatives. Both restart the SMB service through the distributions init scripts.


All times are GMT -5. The time now is 03:45 AM.