Wrong command line for Windows service

Yeah yeah before you give your snarky comments about how Windows sucks - I KNOW. I hate it. I’ve been on Qubes and it’s even worse, huge memory consumption without possibility of swap. Hackintosh doesn’t recognize my USB hub.

Here’s the command line that works:
sc.exe create gitea start=auto binPath=“"C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini"”

Notice there is no space between = and auto, as well as = and ""C:\gitea\gitea.exe"

Cheers :slight_smile:

edit: yeah my bad, that line won’t even get it running!

Here’s the right one: sc.exe create gitea start=auto binPath="C:\gitea\gitea.exe web --config "C:\gitea\custom\conf\app.ini\""

The space is required

  • A space is required between an option and its value (for example, type= own . If the space is omitted, the operation fails.

That said, I am still struggling to get gitea.exe to work on windows. it takes about 5min for gitea.exe web to actually do anything (then it is really quick). This means it can’t get registered as a service since service starting has a 30second timeout