blob: fa7954f01848e32cc05452865b6e2e49dc24d773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[Unit]
Description=SSH/HTTP(S) multiplexer
After=network.target
[Service]
Type=oneshot
User=root
Group=root
EnvironmentFile=/etc/conf.d/sshttpd
ExecStartPre=/usr/bin/nf-setup
ExecStart=/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
ExecStopPost=/usr/bin/killall sshttpd
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
|