goldfisch.at-knowledgebase   (by peter pilsl)


  init.d start-stop-daemon: not found

keywords : init.d cron crond start-stop-daemon path


When you encounter problems when trying to start a service via the /etc/init.d - startupscripts

/etc/init.d/samba: 92: start-stop-daemon: not found
/etc/init.d/slapd: 274: start-stop-daemon: not found


then most likely your PATH-setting is wrong. This can happen when you do the whole thing as cron-job, which has a different environment then your bash maybe.

in crontab you can add the PATH in the first line like:


PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games


I recommend adding all bin and sbin-folders to the PATH. If the script works well in bash but not in crontab, just do a echo $PATH in bash and add the result to crontab

peter at 2007-07-04 (updated 2007-07-04)

serial : 373


If you found any nonsense in this entry or want to see important improvements, I would appreatiate to receive your comments at knowledge@goldfisch.at

disclaimer : all these entries are part of my very private knowledgebase that I created while solving problems. Many solutions are taken from other webpages or from usenet. There is no warranty for this entries of course. Some of the articles are even stupid and one day you might even find the name of my prefered pizza-service in here, cause I always forget about it. Remember : This is my knowledgebase. If you need professional support and are willing to pay for it just email me at pilsl@goldfisch.at
For enlightment take a look at http://leblogsportif.sportnation.at