Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| from time import sleep | |
| def func0(): | |
| print("run func0") | |
| sleep(1) | |
| print("ran func0") | |
| def func1(): |