Open marcolino7 opened 9 months ago
Hi,
I did it with:
/etc/systemd/system/EcpEmuServer.service [Unit] Description=Starting the Harmony Haus AutomationEcpEmuServer.service After=multi-user.target
[Service] ExecStart=/usr/bin/bash /srv/debian/EcpEmuServer-linux_x64/EcpEmuServer.sh Type=simple
[Install] WantedBy=multi-user.target
systemctl enable EcpEmuServer.service systemctl start EcpEmuServer.service
Regards
Gerhard
Hi,
I did it with:
/etc/systemd/system/EcpEmuServer.service [Unit] Description=Starting the Harmony Haus AutomationEcpEmuServer.service After=multi-user.target
[Service] ExecStart=/usr/bin/bash /srv/debian/EcpEmuServer-linux_x64/EcpEmuServer.sh Type=simple
[Install] WantedBy=multi-user.target
systemctl enable EcpEmuServer.service systemctl start EcpEmuServer.service
Regards
Gerhard
Please share also EcpEmuServer.sh file, so I can replicate your configuration
Thanks
Hi,
sorry that I have missed this part:
The script:
EcpEmu_DB_DIR=/srv/debian/EcpEmuServer-linux_x64 EcpEmu_DB_LOG=EcpEmuServer.log
DOTNET_ROOT=/root/.dotnet export DOTNET_ROOT
exec &> $EcpEmu_DB_DIR/$EcpEmu_DB_LOG
cd $EcpEmu_DB_DIR
./EcpEmuServer &> /dev/null
Hi, I am trying to run EpcEmuServer like a Daemon on Debian. I created a service with systemd, EcpEmuServer start but systemd will be not aware if EcpEmuServer is started and systemd timeout and restart EcpEmuServer. Is there a way to run like a daemon without human interacting? Thanks