-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Debian package * Don't put `AdminListen` in config by default, fix path in Debian package * Fix path in unit file * Preserve original service files for other packages --------- Co-authored-by: Neil Alexander <[email protected]>
- Loading branch information
1 parent
82c54f8
commit 0b578a6
Showing
7 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Yggdrasil default config generator | ||
ConditionPathExists=|!/etc/yggdrasil/yggdrasil.conf | ||
ConditionFileNotEmpty=|!/etc/yggdrasil/yggdrasil.conf | ||
Wants=local-fs.target | ||
After=local-fs.target | ||
|
||
[Service] | ||
Type=oneshot | ||
Group=yggdrasil | ||
ExecStartPre=/usr/bin/mkdir -p /etc/yggdrasil | ||
ExecStart=/usr/bin/yggdrasil -genconf > /etc/yggdrasil/yggdrasil.conf | ||
ExecStartPost=/usr/bin/chmod -R 0640 /etc/yggdrasil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[Unit] | ||
Description=Yggdrasil Network | ||
Wants=network-online.target | ||
Wants=yggdrasil-default-config.service | ||
After=network-online.target | ||
After=yggdrasil-default-config.service | ||
|
||
[Service] | ||
Group=yggdrasil | ||
ProtectHome=true | ||
ProtectSystem=strict | ||
NoNewPrivileges=true | ||
RuntimeDirectory=yggdrasil | ||
ReadWritePaths=/var/run/yggdrasil/ /run/yggdrasil/ | ||
SyslogIdentifier=yggdrasil | ||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE | ||
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE | ||
ExecStartPre=+-/sbin/modprobe tun | ||
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil/yggdrasil.conf | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
Restart=always | ||
TimeoutStopSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters