File: lsh-server.service

package info (click to toggle)
lsh-utils 2.1-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 12,884 kB
  • sloc: ansic: 51,017; sh: 5,683; lisp: 657; makefile: 381; perl: 63
file content (21 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Secure Shell v2 (SSH2) protocol server
Documentation=man:lshd(8)
After=local-fs.target remote-fs.target network.target nss-lookup.target

[Service]
Type=simple
ExecStart=/bin/sh -c "case \"$ENABLE_SFTP\" in \
 true|y*|Y*) ;; \
 *) SFTP_FLAG='';; esac; \
 exec /usr/sbin/lshd --port \"$LSHD_PORT\" $SFTP_FLAG $EXTRA_ARGS"
Environment="LSHD_PORT=22" "SFTP_FLAG=--subsystems sftp=/usr/lib/lsh-server/sftp-server"
EnvironmentFile=-/etc/default/lsh-server
KillSignal=SIGHUP
KillMode=process
SendSIGKILL=no
SyslogIdentifier=lshd
TimeoutStopSec=1

[Install]
WantedBy=multi-user.target