majkinetor / au-packages

Chocolatey packages by majkinetor
https://gist.github.com/majkinetor/a700c70b8847b29ebb1c918d47ee4eb1
GNU General Public License v2.0
66 stars 45 forks source link

(gitlab-runner) Investigate service options #173

Open majkinetor opened 3 years ago

majkinetor commented 3 years ago

It happened to me that service was created without user (running as Administrator):

 cinst gitlab-runner --params "/Service:gitlab-runner:P@ssw0rd"

Also with wrong working dir and config path (96cbb84344d0d60b98d2e6d90e9f6c96f27697fd)

image

majkinetor commented 3 years ago

When installing as a Service & using a system account, it seems that the working directory & config path aren't set correctly. It seems they're only set correctly if a Username has been specified (please see tools\chocolateyInstall.ps1 -> line 50). Thanks!