
Code: Select all
% man start-stop-daemon | less -p HISTORYAs to why its in /sbin and not /usr/{,s}bin/ ... its required to bring the system up, and historically we use / rather than /usr as /usr may be a seperate partition.man start-stop-daemon wrote:start-stop-daemon first appeared in Debian. This is a complete re-implementation with the process finding code in the OpenRC library (librc, -lrc) so other programs can make use of it.

mi_unixbird ... because it's not something that a user is generally doing, and so it doesn't make sense to put it in the standard user PATH. There are other binaries in /sbin ... such as lsmod, modinfo, findfs, etc ... that similarly don't require root privilages to run, but are kept seperate none the less. If you want them in your path then you can add /sbin to PATH, or do something like the following (zsh):mi_unixbird wrote:So why is it in /sbin instead of /bin if it can seemingly be used just fine to start non root daemons?
Code: Select all
zstyle ':completion:*:sudo:*' environ PATH="$SUDO_PATH:$PATH"
if [[ $EUID != 0 ]] && (($+commands[sudo])) ; then
typeset -xT SUDO_PATH sudo_path
typeset -U sudo_path
sudo_path=({,/usr/local,/usr}/sbin(N-/))
fiCode: Select all
alias start-stop-daemon="/sbin/start-stop-daemon"