mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
add mDNS responder for mixed in hostname lookup and key based lookup
This commit is contained in:
parent
559e31c502
commit
ac72653627
11 changed files with 355 additions and 3 deletions
|
@ -171,6 +171,39 @@ cat > wix.xml << EOF
|
|||
Remove="uninstall" />
|
||||
</Component>
|
||||
|
||||
<Component Id="mDNSExecutable" Guid="c2119231-2aa3-4962-867a-9759c87beb25">
|
||||
<File
|
||||
Id="YggdrasilmDNS"
|
||||
Name="yggmdns.exe"
|
||||
DiskId="1"
|
||||
Source="yggmdns.exe"
|
||||
KeyPath="yes" />
|
||||
|
||||
<ServiceInstall
|
||||
Id="ServiceInstallermDNS"
|
||||
Account="LocalSystem"
|
||||
Description="Yggdrasil mDNS responder"
|
||||
DisplayName="Yggdrasil mDNS Service"
|
||||
ErrorControl="normal"
|
||||
LoadOrderGroup="NetworkProvider"
|
||||
Name="YggdrasilmDNS"
|
||||
Start="auto"
|
||||
Type="ownProcess"
|
||||
Arguments='-interface Yggdrasil -useconffile "%ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf" -logto "%ALLUSERSPROFILE%\\Yggdrasil\\yggmdns.log"'
|
||||
Vital="no">
|
||||
<ServiceDependency
|
||||
Id="Yggdrasil"
|
||||
Group="no" />
|
||||
</ServiceInstall>
|
||||
|
||||
<ServiceControl
|
||||
Id="ServiceControlmDNS"
|
||||
Name="yggdrasilmdns"
|
||||
Start="install"
|
||||
Stop="both"
|
||||
Remove="uninstall" />
|
||||
</Component>
|
||||
|
||||
<Component Id="CtrlExecutable" Guid="a916b730-974d-42a1-b687-d9d504cbb86a">
|
||||
<File
|
||||
Id="Yggdrasilctl"
|
||||
|
@ -194,6 +227,7 @@ cat > wix.xml << EOF
|
|||
|
||||
<Feature Id="YggdrasilFeature" Title="Yggdrasil" Level="1">
|
||||
<ComponentRef Id="MainExecutable" />
|
||||
<ComponentRef Id="mDNSExecutable" />
|
||||
<ComponentRef Id="CtrlExecutable" />
|
||||
<ComponentRef Id="ConfigScript" />
|
||||
</Feature>
|
||||
|
|
16
contrib/systemd/yggmdns.service
Normal file
16
contrib/systemd/yggmdns.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=yggdrasil
|
||||
Wants=yggdrasil.service
|
||||
After=yggdrasil.service
|
||||
|
||||
[Service]
|
||||
Group=yggdrasil
|
||||
ProtectHome=true
|
||||
ProtectSystem=true
|
||||
SyslogIdentifier=yggmdns
|
||||
ExecStart=/usr/bin/yggmdns -useconffile /etc/yggdrasil.conf
|
||||
Restart=always
|
||||
TimeoutStopSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue