log_daemon_msg comes from
/etc/init.d/founationdb has commented out:
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
# Installation failed on Ubuntu 16.04 or later due to init-functions calling systemctl which tries to find foundationdb.service
# under /lib/systemd/system. Hence comment out it for now.
# . /lib/lsb/init-functions
So you can try uncommenting that include, and see what happens. In general, our Ubuntu packages have been kind of stranded by the init system change, as trying to keep one package compatible across both has been… rather challenging.
The definitions of the log_* functions aren’t that complicated either, and other projects have just copied them into the init script, which we could also do. If you copy the definition of
log_end_msg from wherever they’re defined in /lib/init/ , does the script then run and work for you?