[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