ntpd: make start-stop-daemon command available for ntpd
ntpd: make start-stop-daemon command available for ntpd

If ntpd script is being called by a non-root user using sudo,
it will fail as follows:

/etc/init.d/ntpd restart
Stopping ntpd: /etc/init.d/ntpd: line 29: start-stop-daemon:
command not found
done
Starting ntpd: /etc/init.d/ntpd: line 24: start-stop-daemon:
command not found
done

This is because /etc/init.d/ntpd calls start-stop-daemon which
is in /sbin (not in the default path for non-root users)

Explicitly configure the PATH to include /sbin.

Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>

Reworked to set PATH instead of hardcode the location of start-stop-daemon

Signed-off-by: Mark Hatle <41765ab18fb75e64ff0efe27f2ebcdb2d6f7e44e@windriver.com>
Signed-off-by: Joe MacDonald <16a9a54ddf4259952e3c118c763138e83693d7fd@deserted.net>

WindRiver-OpenSourceLabs/meta-networking