Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21

Thread: start service with parameters on restart

  1. #16
    exotericist Guest

    Re: start service with parameters on restart

    the letters "MVP" suggest that you knwo something about your subject.

    you gave me a solution which did not work.
    you gave me two reasons why it did not work, both of which were untrue.

    i admit that i could have phrased things a little less bluntly, but the
    undelying meaning would have been the same.

    i apologise if i have hurt your feelings.

    i have a call in with oracle at the moment. one of our servers hangs for no
    apparent reason. it's been running fine for six months, last tuesday it just
    died. there are three pieces of software, third party, db and os, which are
    all implicated. there are literally tens of thousands of variables one of
    whose missetting could be causing this behaviour. for this reason i feel
    confident that we will not get an answer and a rebuild will be inevitable.
    that kind of question does not belong on a public forum.

    my original question, though, is one that is ideally suited to such "open"
    conditions. it's a very narrow question about the way stuff works. either
    someone has done this before and knows the solution or they don't, and the
    more people you ask the more likely you are to get an answer.

    i am sorry i lost my temper. if, however, you don't want to get yelled at,
    try not to make stuff up, at least make an attempt to actuallly be helpful or
    hold you peace.

  2. #17
    Monitor Guest

    Re: start service with parameters on restart

    I have been following this thread with a degree of curiosity. There are
    a few things that you appear to be blissfully unaware of:
    - The respondents in this newsgroup are volunteers. They don't get paid
    for the advice they provide.
    - Pegasus has been a regular contributor for a long time. He may not always
    get it right the first time but he usually perseveres until he finds a
    solution.
    - You don't bite the hand that feeds you.
    - First you offer an apology, then you follow it immediately with a lecture
    for Peg how to behave when talking to you.
    This thread is a perfect illustration of how to shoot yourself in the foot.
    Peg's advice for you to get paid assistance from Microsoft was probably
    the best thing he said. You'd be at liberty to order these guys around -
    until they hang up on you.

  3. #18
    exotericist Guest

    Re: start service with parameters on restart

    keep quiet on subjects about which you know nothing isn't a lecture, it's
    just sound advice.

    i must admit that after i discovered the "some applications only read the
    registry at startup and that's just the way things are" was more than a bit
    wrong i've been trolling somewhat.

    for someone to feel their way into a problem that has a single, narrow
    solution is pretty unacceptable. either you know it or you don't.

    had you, monitor, known the solution, would you have interrupted peg to give
    it, or would you have stood back out of courtesy?

    by replying to a question he didn't know the answer to and then giving wrong
    information in defence of his non-solution he gave up any right to that,
    although the way you defend him you don't seem to see it.

    just because you think you're helping doesn't mean you are. if you're not
    then people have no obligation to be grateful.

    you say you've been following this closely: have i been wrong in my analysis
    of the suggested solutions?

    i accept that i could have been less abrasive and for that i am genuinely
    sorry. it is not my intention to insult. i hope i have been careful to point
    my criticism at the solution and not its giver. my first instinct is always
    to yell "you are an idiot! you know nothing!" but, in this instance, i tried
    to rein it in.

    as far as microsoft employees goes, they've pretty much always provided an
    immediate solution, so i have no experience of being rude to them.

  4. #19
    James Watkins Guest

    Re: start service with parameters on restart

    You can use Pegasus' suggestion of running sc.exe, but with a twist. Stop
    the service, then use sc.exe to delete the service. Now recreate it with the
    parameters you require, using sc.exe, then restart it. No need to hack the
    registry!

  5. #20
    Join Date
    Dec 2009
    Posts
    1

    Re: start service with parameters on restart

    First off, Thanks for all the time spent working on this, and for giving that idiot a hard time for not appreciating other peoples hard work.

    OK,
    I too am trying to solve this problem, where I need to provide an additional startup parameter to a service. I have tried what Pegasus gave, but am not getting the results that I am expecting.

    I have edited the registry key for the service in question, adding in my additional parameter, "-o", but the service will not start with my added parameter.

    I am a bit confused on this part:
    Plug the parameter into ImagePath field via regedit, then start
    theservice.
    Example:

    ImagePath="C:\Program Files\RealVNC\WinVNC\winvnc.exe" -nIS1527
    Does this mean that I need to add the parameter to the end of the ImagePath key's value or do I need to add this entire string (ImagePath="C:\Program Files\RealVNC\WinVNC\winvnc.exe" -nIS1527) to the ImagePath key?

    Thanks!

  6. #21
    Pegasus [MVP] Guest

    Re: start service with parameters on restart

    The thread you refer to is 15 months old. It's a little stale now. I
    recommend you state/restate your problem, including what you're trying to
    do, rather than piggy-backing onto someone else's thread that may or may not
    be relevant to the issue you're dealing with.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Permissions for single remote service restart
    By RichardW in forum Windows Server Help
    Replies: 5
    Last Post: 06-10-2011, 05:22 PM
  2. Restart logrotate service
    By Unix'EM in forum Operating Systems
    Replies: 2
    Last Post: 08-08-2009, 02:21 PM
  3. powershell remotely restart windows service
    By Guns-n-Roses in forum Software Development
    Replies: 2
    Last Post: 30-06-2009, 06:13 PM
  4. PC's problem, restart everytime on start up....
    By harrylennox in forum Operating Systems
    Replies: 3
    Last Post: 28-05-2008, 01:15 PM
  5. Replies: 4
    Last Post: 13-08-2006, 12:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,014,853.26417 seconds with 16 queries