I was looking through
/etc/init.d/ssh to get an idea of how a "proper" sys daemon is run at boot (I'm trying to add
svnserve to that list). I saw this
log_daemon_msg used as a command, but I have no idea what it is ?
which log_daemon_msg and
man log_daemon_msg came up empty.
log_daemon_msg "Starting OpenBSD Secure Shell server" "sshd" || true if start-stop-daemon --start --quiet --oknodo --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPTS; then log_end_msg 0 || true else log_end_msg 1 || true fi
How does that work? I tried goggling around, but the only things I could were questions about where it records its messages, which is useless since I hardly know how to use it or what it even is - a command, a builtin, or something else ?