Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:ssh:autossh [2021/01/04 21:03] – [Run as Service] trendy | docs:guide-user:services:ssh:autossh [2022/03/25 10:50] – [Run as Service] trendy | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| ===== Run as Service ===== | ===== Run as Service ===== | ||
| - | Autossh is ofen used as reverse proxy. It's probably because your ISP does not give you a publlic | + | Autossh is often used as reverse proxy. It's probably because your ISP does not give you a public |
| - | In ''/ | + | In ''/ |
| - | local section=" | + | |
| - | config_get ssh " | + | |
| - | config_get gatetime " | + | |
| - | config_get monitorport " | + | |
| - | config_get poll " | + | config_get gatetime " |
| - | config_get_bool enabled " | + | config_get monitorport " |
| - | [ " | + | config_get poll " |
| - | | + | config_get_bool enabled " |
| - | | + | |
| - | | + | |
| - | | + | |
| - | service_start /usr/sbin/ | + | procd_open_instance |
| + | procd_set_param command | ||
| + | | ||
| + | procd_set_param env AUTOSSH_GATETIME=" | ||
| + | | ||
| + | | ||
| + | procd_close_instance | ||
| Now you can enable the service by ''/ | Now you can enable the service by ''/ | ||