blob: 876f5be6ce88771fcc61f039016252a6615b1002 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[Unit]
Description=SSH/HTTP(S) multiplexer
After=network.target
[Service]
Type=oneshot
User=root
Group=root
EnvironmentFile=/etc/conf.d/sshttpd
ExecStart=/usr/bin/nf-setup ; \
/usr/bin/sshttpd -S $SSH_PORT -H $HTTP_PORT -L $LISTEN_PORT -l $LISTEN_ADDRESS -U $USER -R $CHROOT_DIR
ExecStop=/usr/bin/nf-cleanup ; \
/usr/bin/killall sshttpd
[Install]
WantedBy=multi-user.target
|