By creating links to the samba init script called samba.smbd, samba.nmbd or samba.winbindd you should be able to start the daemons individually but it doesn't work. Reproducible: Always Steps to Reproduce: 1. cd /etc/init.d 2. ln -s samba samba.nmbd 3. /etc/init.d/samba.nmbd start Actual Results: nmbd doesn't start Expected Results: nmbd should start!!! The problem is that the linked scripts are attempting to read /etc/conf.d/<linkname> (in this cate /etc/conf.d/samba.nmbd) for their environment info and it doesn't exist. To resolve this replace this section in the script: DAEMONNAME="${SVCNAME##samba.}" [ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} with: DAEMONNAME="${SVCNAME##samba.}" [ "${DAEMONNAME}" != "samba" ] && source /etc/conf.d/samba [ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} or perhaps something far more elegant and clever:) as this may an example of a general problem with links to scripts.
*** Bug 253796 has been marked as a duplicate of this bug. ***
I've tried to reproduce this. I've added TEST="some var" to /etc/conf.d/samba Then I've made the symlink to samba.nmbd, and at the beginning of the start phase I've put: start() { einfo ${TEST} ... } And then running: # /etc/init.d/samba.nmbd start * Caching service dependencies... [ ok ] * some var ... The same happened with a dummy script.
No longer applies, samba 4 init scripts are way different