mirror of
https://github.com/Retropex/datum-gateway-startos.git
synced 2025-05-13 03:30:45 +02:00
fix systemd service
This commit is contained in:
parent
c544a57e00
commit
cd755bc33a
@ -109,11 +109,11 @@ Copy and paste the following lines of code one by one:
|
|||||||
|
|
||||||
Now copy and paste the following chunk of code in one command:
|
Now copy and paste the following chunk of code in one command:
|
||||||
|
|
||||||
echo -e '[Unit]\nDescription=Simpleproxy Datum Forward\nWants=podman.service\nAfter=podman.service\n\n[Service]\nType=simple\nRestart=always\nRestartSec=3\nExecStartPre=/bin/bash -c "/bin/systemctl set-environment IP=$(ip route | grep default | awk '\''{print $9}'\'')"\nExecStart=/usr/bin/simpleproxy -L ${IP}:33334 -R datum.embassy:33335\n\n[Install]\nWantedBy=multi-user.target' > /lib/systemd/system/simpleproxy.datum.service
|
echo -e '[Unit]\nDescription=Simpleproxy Datum2 Forward\nWants=podman.service\nAfter=podman.service\n\n[Service]\nType=simple\nRestart=always\nRestartSec=3\nExecStartPre=/bin/bash -c "/bin/systemctl set-environment IP=$(ip route | grep default | awk '\''{print $9}'\'')"\nExecStart=/usr/bin/simpleproxy -L ${IP}:33334 -R datum.embassy:33335\n\n[Install]\nWantedBy=multi-user.target' > /lib/systemd/system/simpleproxy.datum2.service
|
||||||
|
|
||||||
Next, copy and paste the following:
|
Next, copy and paste the following:
|
||||||
|
|
||||||
`systemctl enable simpleproxy.datum.service`
|
`systemctl enable simpleproxy.datum2.service`
|
||||||
|
|
||||||
Then finally:
|
Then finally:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user