This is the mail archive of the
mailing list for the Cygwin project.
Re: Installing a program as a Windows service on Windows 8.1
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Nick Urbanik <nicku at nicku dot org>, cygwin at cygwin dot com
- Date: Wed, 21 May 2014 16:01:19 +0400
- Subject: Re: Installing a program as a Windows service on Windows 8.1
- Authentication-results: sourceware.org; auth=none
- References: <20140521112343 dot GC24265 at nicku dot org>
- Reply-to: cygwin at cygwin dot com
Greetings, Nick Urbanik!
> I have written a Perl program that I want to run as a service on
> Windows 8.1. However, when I type:
> cygrunsrv -I NAME -p /path/to/NAME
> Note: NAME has execute permissions, and can be run.
> I get the error message:
> cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5:
> Access is denied.
> I am doing this from an account that is shown as "Administrator". I
> am not very familiar with Windows; I only use it to solve problems
> that other users of it are having. Any suggestions are most welcome.
That's not enough. Even "administrator" don't have full rights by default.
You have to run this command from elevated prompt.
Be aware though, that I've encountered an issue with Win8, where ANY service
I install that is not standard, turn into "manual start" and no longer run
until someone log in to the system.
Andrey Repin (firstname.lastname@example.org) 21.05.2014, <16:00>
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple