wrapper.ntservice.starttype

View: New views
5 Messages — Rating Filter:   Alert me  

wrapper.ntservice.starttype

by Lars Schnoor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
Is there a way to control the wrapper.ntservice.starttype parameter for
a service that is installed?
When I change the value for the wrapper.ntservice.starttype in
wrapper.conf it does not take affect before uninstalling the service and
then installing it again. I would like to be able to switch between
AUTO_START and DEMAND_START without reinstalling the service. I am using
version 3.2.3.
Thanks in advance!

Lars

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user

Re: wrapper.ntservice.starttype

by Leif Mortenson-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lars,
Not currently, no.  You can do so from within the Service Control
Panel manually however.  Does that work for you?

If not, what is the timing that you would like to see it changed?
While the service is running, or simply installed.

Cheers,
Leif

On Wed, Nov 4, 2009 at 8:44 PM, Lars Schnoor <Lars.Schnoor@...> wrote:

> Hi
> Is there a way to control the wrapper.ntservice.starttype parameter for
> a service that is installed?
> When I change the value for the wrapper.ntservice.starttype in
> wrapper.conf it does not take affect before uninstalling the service and
> then installing it again. I would like to be able to switch between
> AUTO_START and DEMAND_START without reinstalling the service. I am using
> version 3.2.3.
> Thanks in advance!
>
> Lars

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user

Re: wrapper.ntservice.starttype

by Lars Schnoor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Leif
You mean on Windows XP from Control Panel->Administrative Tools->Services?

I have a control panel for my application that allows the user to set some parameters and there I would like to allow the user to set whether the service should start automatically on system startup or if he/she has to start the service manually. When the user saves the settings I restart the service using WrapperManager.restart(), so it would be nice if the change would take affect at that point. I mean the service should restart, but if the user afterwards restarts the computer the change should have taken affect.

I have no specific timing in mind, I just think it would be nice to be able to do it. Since my control panel only comes up when the service is running it would be sufficient to be able to do it while the service is running, but being able to do it when the service is simply installed would probably not hurt.

Lars

Leif Mortenson wrote:
Lars,
Not currently, no.  You can do so from within the Service Control
Panel manually however.  Does that work for you?

If not, what is the timing that you would like to see it changed?
While the service is running, or simply installed.

Cheers,
Leif

On Wed, Nov 4, 2009 at 8:44 PM, Lars Schnoor Lars.Schnoor@... wrote:
  
Hi
Is there a way to control the wrapper.ntservice.starttype parameter for
a service that is installed?
When I change the value for the wrapper.ntservice.starttype in
wrapper.conf it does not take affect before uninstalling the service and
then installing it again. I would like to be able to switch between
AUTO_START and DEMAND_START without reinstalling the service. I am using
version 3.2.3.
Thanks in advance!

Lars
    

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user

Re: wrapper.ntservice.starttype

by Leif Mortenson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lars,
We will look into it.  One problem I see however is the fact that
changing service configurations requires Administrator level
privileges.  When the Wrapper is running as a service, it is running
as the SYSTEM user which does not.

In Windows Vista, 2008 and 7, this requires an Elevated Administrator
account,  we have already been doing some research on how these
accounts work for other purposes.  It may be necessary to actually run
the service as an elevated user.

Cheers,
Leif

On Wed, Nov 4, 2009 at 11:23 PM, Lars Schnoor <Lars.Schnoor@...> wrote:

> Hi Leif
> You mean on Windows XP from Control Panel->Administrative Tools->Services?
>
> I have a control panel for my application that allows the user to set some
> parameters and there I would like to allow the user to set whether the
> service should start automatically on system startup or if he/she has to
> start the service manually. When the user saves the settings I restart the
> service using WrapperManager.restart(), so it would be nice if the change
> would take affect at that point. I mean the service should restart, but if
> the user afterwards restarts the computer the change should have taken
> affect.
>
> I have no specific timing in mind, I just think it would be nice to be able
> to do it. Since my control panel only comes up when the service is running
> it would be sufficient to be able to do it while the service is running, but
> being able to do it when the service is simply installed would probably not
> hurt.
>
> Lars
>
> Leif Mortenson wrote:
>
> Lars,
> Not currently, no.  You can do so from within the Service Control
> Panel manually however.  Does that work for you?
>
> If not, what is the timing that you would like to see it changed?
> While the service is running, or simply installed.
>
> Cheers,
> Leif
>
> On Wed, Nov 4, 2009 at 8:44 PM, Lars Schnoor <Lars.Schnoor@...> wrote:
>
>
> Hi
> Is there a way to control the wrapper.ntservice.starttype parameter for
> a service that is installed?
> When I change the value for the wrapper.ntservice.starttype in
> wrapper.conf it does not take affect before uninstalling the service and
> then installing it again. I would like to be able to switch between
> AUTO_START and DEMAND_START without reinstalling the service. I am using
> version 3.2.3.
> Thanks in advance!
>
> Lars

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user

Re: wrapper.ntservice.starttype

by Lars Schnoor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Leif

I am aware of the problems with Windows Vista and Windows 7 with regards to Windows Services and users/user levels, it is a real pain.

Lars

Leif Mortenson wrote:
Lars,
We will look into it.  One problem I see however is the fact that
changing service configurations requires Administrator level
privileges.  When the Wrapper is running as a service, it is running
as the SYSTEM user which does not.

In Windows Vista, 2008 and 7, this requires an Elevated Administrator
account,  we have already been doing some research on how these
accounts work for other purposes.  It may be necessary to actually run
the service as an elevated user.

Cheers,
Leif

On Wed, Nov 4, 2009 at 11:23 PM, Lars Schnoor Lars.Schnoor@... wrote:
  
Hi Leif
You mean on Windows XP from Control Panel->Administrative Tools->Services?

I have a control panel for my application that allows the user to set some
parameters and there I would like to allow the user to set whether the
service should start automatically on system startup or if he/she has to
start the service manually. When the user saves the settings I restart the
service using WrapperManager.restart(), so it would be nice if the change
would take affect at that point. I mean the service should restart, but if
the user afterwards restarts the computer the change should have taken
affect.

I have no specific timing in mind, I just think it would be nice to be able
to do it. Since my control panel only comes up when the service is running
it would be sufficient to be able to do it while the service is running, but
being able to do it when the service is simply installed would probably not
hurt.

Lars

Leif Mortenson wrote:

Lars,
Not currently, no.  You can do so from within the Service Control
Panel manually however.  Does that work for you?

If not, what is the timing that you would like to see it changed?
While the service is running, or simply installed.

Cheers,
Leif

On Wed, Nov 4, 2009 at 8:44 PM, Lars Schnoor Lars.Schnoor@... wrote:


Hi
Is there a way to control the wrapper.ntservice.starttype parameter for
a service that is installed?
When I change the value for the wrapper.ntservice.starttype in
wrapper.conf it does not take affect before uninstalling the service and
then installing it again. I would like to be able to switch between
AUTO_START and DEMAND_START without reinstalling the service. I am using
version 3.2.3.
Thanks in advance!

Lars
    

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Wrapper-user mailing list
Wrapper-user@...
https://lists.sourceforge.net/lists/listinfo/wrapper-user