2

Have a line in sh script starting service from rc.d

start-stop-daemon --quiet --start --background --chuid "$USER" --exec /usr/local/bin/env -- $ARGS RETVAL=$?

it returns

/etc/rc.d/spat: start-stop-daemon: not found
/etc/rc.d/spat: --exec: not found

There is no start-stop-daemon ?

1
  • 1
    FreeBSD has daemon(8) utility which provides subset of start-stop-daemon functionality. Mar 15, 2012 at 14:53

2 Answers 2

3

No, FreeBSD uses different kind of system. Just open up any other /etc/rc.d script to your favourite text editor and see examples from there.

2
1

Check not only /etc/rc.d where system daemons scripts lives but also /usr/local/etc/rc.d where scripts for additional daemons like mysql or apache and such lives. They are rc shell scripts and, as usual, they have useful hints inside - how to make them startable when system starts, how to setup additional params and many other funny stuff.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .