We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddaccd9 commit 6c2914dCopy full SHA for 6c2914d
distrod_packer/resources/run/systemd/system/portproxy.service
@@ -7,7 +7,11 @@ Wants=network-online.target systemd-networkd-wait-online.service
7
Restart=on-failure
8
RestartSec=15
9
10
+# WSL_INTEROP and other variables should be set by systemd even without sourcing /etc/environment,
11
+# but if a user enable this just after they updated systemd (apt-upgrade or pacman -Syu), then
12
+# systemd will forget those variables due to restart. So, source /etc/environment just in case.
13
ExecStart=/bin/sh -c '/opt/distrod/bin/portproxy.exe proxy $(/opt/distrod/bin/portproxy show ipv4) -t $(cat /opt/distrod/conf/tcp4_ports)'
14
+EnvironmentFile=/etc/environment
15
16
[Install]
17
WantedBy=multi-user.target
0 commit comments