fix systemd service

This commit is contained in:
Léo Haf 2025-04-18 12:47:01 +02:00 committed by GitHub
parent c544a57e00
commit cd755bc33a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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:
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:
`systemctl enable simpleproxy.datum.service`
`systemctl enable simpleproxy.datum2.service`
Then finally: