mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
483 B

  1. #!/bin/sh
  2. #
  3. # ROCK Linux: /etc/init.d/samba
  4. #
  5. # Desc: SMB (Server Message Block) protocol daemon
  6. # Runlevel: 40 rcX
  7. #
  8. test -f /etc/opt/samba/smb.conf || exit 0
  9. main_begin
  10. block_begin(start, `Starting SAMBA server.')
  11. check(`D_prefix/sbin/smbd -D')
  12. check(`D_prefix/sbin/nmbd -D')
  13. block_end
  14. block_begin(stop, `Stopping SAMBA server.')
  15. check(`killall -15 D_prefix/sbin/nmbd')
  16. check(`killall -15 D_prefix/sbin/smbd')
  17. block_end
  18. main_end