Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.targetCreate a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| #!/bin/bash | |
| # | |
| # autosshd This script starts and stops the autossh daemon | |
| # | |
| # chkconfig: 2345 95 15 | |
| # processname: autosshd | |
| # description: autosshd is the autossh daemon. | |
| # Source function library. | |
| . /etc/rc.d/init.d/functions |
| # | |
| # After a discussion about the cool groovy syntax for | |
| # declaring anonymous classes. Jim Weirich and I came up | |
| # with the following solutions in Ruby. | |
| # | |
| # Requires: Ruby 1.9 | |
| # | |
| def run(x) | |
| x.foo | |
| end |