smbtad.rc 493 B

1234567891011121314151617181920212223242526
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2012 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. CONFFILE=/etc/conf.d/${SVCNAME}.conf
  5. PIDFILE=/var/run/${SVCNAME}.pid
  6. depend() {
  7. before samba
  8. use dns logger
  9. }
  10. start() {
  11. ebegin "Starting ${SVCNAME}"
  12. start-stop-daemon --start --quiet \
  13. --exec /usr/bin/"${SVCNAME}" \
  14. -- -c "${CONFFILE}"
  15. eend ${?}
  16. }
  17. stop() {
  18. ebegin "Stopping ${SVCNAME}"
  19. start-stop-daemon --stop --quiet --name "${SVCNAME}"
  20. eend ${?}
  21. }