cmake -B _builds && make -C _builds apfd
- Install service -
apfd.exe --install <windows account name> <windows account password>
- You must enable Log On As a Service for your account
- Remove service -
apfd.exe --remove
apfd[.exe] --debug
Example apfd.json
{
"services": [
{
"enabled":true,
"name":"Debian Apache",
"protocol":"tcp", // only tcp
"localIp":":Debian:lo", // ipv4 address | any | localhost | :<wsl distro>:<iface> (use lo for wsl1, eth0 for wsl2)
"localPort":80,
"remoteIp":"any", // ipv4 address | any | localhost
"remotePort":80,
"autoStart":true,
"startCommand":"sudo service apache2 start" // set up your sudoers
}
]
}