Commit 9b51ab44 authored by Alexey's avatar Alexey

DeStreamD autostart script for Linux has been added

parent 335cc787
......@@ -40,4 +40,10 @@
<PackageReference Include="NLog.Extensions.Logging" Version="1.0.0-rtm-beta5" />
</ItemGroup>
<ItemGroup>
<None Update="destream.service">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
[Unit]
Description=DeStream node
[Service]
User=destream
Type=simple
TimeoutSec=0
PIDFile=/var/run/destream.pid
ExecStart=/usr/bin/dotnet /home/destream/node/DeStream.DeStreamD.dll -testnet 2>&1> /dev/null
ExecStop=/bin/kill -INT $MAINPID
#ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s
StandardOutput=null
StandardError=/var/log/destream/destream-error.log
[Install]
WantedBy=default.target
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment