Some alternatives - [x] open rc and rc init. remove daemonization. https://linuxcommandlibrary.com/man/daemonize or /run. - [x] no process files on tmp all in /run - [x] typo in infrastructure (directory). - [x] CMAKE_INSTALL_LIBEXEC_DIR no CMAKE_INSTALL_LIBEXECDIR - [x] EUID is not there in dash: check shell env var and if not bash blow up. use $(id -u) = effective user and -nr is who ran it.
Some alternatives