Ответ 1
Сервисы демона Linux могут быть на любом языке, который может быть запущен в системе.
Демоны могут быть выполнены с использованием systemd (в Fedora: systemctl start name.service). Чтобы поместить вашу программу в службы Linux Systemd, вы должны создать новый файл .service и перенести его в '/etc/systemd/system/'
Синтаксис службы:
[Unit]
Description=The description of your service
After=previous services needed
[Service]
ExecStart=The program execution /sbin/helloworld.exe
ExecStop=The command given when killing the service
[Install]
WantedBy=services that needs your service
Дополнительная информация о службах и сервисных модулях Linux-Red Hat: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Unit_Files.html