Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=MB Remote Control
- After=network.target
- [Service]
- ExecStart=/usr/bin/autossh -N -q -R0.0.0.0:39202:localhost:22 cokmok
- ExecReload=/bin/kill -HUP $MAINPID
- KillMode=process
- Restart=on-failure
- TimeoutStartSec=30s
- [Install]
- WantedBy=multi-user.target
- - Természetesen ez megvolt:
- # systemctl enable mb_remote.service
- - Reboot után:
- # systemctl status mb_remote.service
- ● mb_remote.service - MB Remote Control
- Loaded: loaded (/etc/systemd/system/mb_remote.service; enabled)
- Active: inactive (dead) since k 2016-08-09 21:43:55 CEST; 21min ago
- Process: 580 ExecStart=/usr/bin/autossh -N -q -R0.0.0.0:39202:localhost:22 cokmok (code=exited, status=0/SUCCESS)
- Main PID: 580 (code=exited, status=0/SUCCESS)
- aug 09 21:43:54 paksikati autossh[580]: starting ssh (count 1)
- aug 09 21:43:54 paksikati autossh[580]: ssh child pid is 679
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement