Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 120 | magnus | 1 | [Unit] |
| 2 | Description=Secure Shell v2 (SSH2) protocol server |
||
| 3 | Documentation=man:lshd(8) |
||
| 4 | After=local-fs.target remote-fs.target network.target syslog.target nss-lookup.target |
||
| 5 | |||
| 6 | [Service] |
||
| 7 | Type=simple |
||
| 8 | ExecStart=/bin/sh -c "case \"$ENABLE_SFTP\" in \ |
||
| 9 | true|y*|Y*) ;; \ |
||
| 10 | *) SFTP_FLAG='';; esac; \ |
||
| 11 | exec /usr/sbin/lshd --port \"$LSHD_PORT\" $SFTP_FLAG $EXTRA_ARGS" |
||
| 12 | Environment="LSHD_PORT=22" "SFTP_FLAG=--subsystems sftp=/usr/lib/lsh-server/sftp-server" |
||
| 13 | EnvironmentFile=-/etc/default/lsh-server |
||
| 14 | KillSignal=SIGHUP |
||
| 15 | KillMode=process |
||
| 16 | SendSIGKILL=no |
||
| 17 | SyslogIdentifier=lshd |
||
| 18 | TimeoutStopSec=1 |
||
| 19 | |||
| 20 | [Install] |
||
| 21 | WantedBy=multi-user.target |