Asking every start Stop server?

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
linokoo
550 Permission denied
Posts: 25
Joined: 2009-01-05 22:30
First name: lin
Last name: kam

Asking every start Stop server?

#1 Post by linokoo » 2009-06-12 13:39

Hello,
Somebody know where to configurate FileZilla to stop asking me if Stop or running the server each time that start the PC.
Thank you for your help.

Lino

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Asking every start Stop server?

#2 Post by botg » 2009-06-12 15:53

Simply reinstall and select the desired startup options during setup.

steveatquinata
500 Command not understood
Posts: 4
Joined: 2009-07-03 09:15
First name: Steve
Last name: Jarvis

Re: Asking every start Stop server?

#3 Post by steveatquinata » 2009-07-03 09:20

Is it possible to configure this from Filezilla Server.xml?

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Asking every start Stop server?

#4 Post by botg » 2009-07-03 09:34

No.

steveatquinata
500 Command not understood
Posts: 4
Joined: 2009-07-03 09:15
First name: Steve
Last name: Jarvis

Re: Asking every start Stop server?

#5 Post by steveatquinata » 2009-07-03 11:38

I have two problems.

The first is that I can't identify which options I need to select to change this behaviour.

The second is that I need to be able to do an "unattended" install.

Steve

User avatar
botg
Site Admin
Posts: 35563
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Asking every start Stop server?

#6 Post by botg » 2009-07-03 11:55

Not possible unattanded. You would have to change the installer script.

steveatquinata
500 Command not understood
Posts: 4
Joined: 2009-07-03 09:15
First name: Steve
Last name: Jarvis

Re: Asking every start Stop server?

#7 Post by steveatquinata » 2009-07-03 12:43

I assume that you mean the NSIS script. I'm quite happy changing NSIS scripts, but having looked through it I still don't understand what I would need to set.

I have also run the installer and can see no option that would obviously relate to generating a prompt when the server is stopped or started.

Is it a side effect of some other setting?

Cypress
226 Transfer OK
Posts: 121
Joined: 2008-09-13 19:39
First name: J

Re: Asking every start Stop server?

#8 Post by Cypress » 2009-07-03 17:19

steveatquinata wrote:I assume that you mean the NSIS script. I'm quite happy changing NSIS scripts, but having looked through it I still don't understand what I would need to set.

I have also run the installer and can see no option that would obviously relate to generating a prompt when the server is stopped or started.

Is it a side effect of some other setting?
It is in a droplist as you run the installer.. "install as service started manually"

From the NSIS script:

Code: Select all

!insertmacro MUI_INSTALLOPTIONS_READ $R0 "StartupOptions.ini" "Field 2" "State"
  StrCmp $R0 "Do not install as service, start server automatically (not recommended)" Install_Standard_Auto
  DetailPrint "Installing Service..."
  StrCmp $R0 "Install as service, started manually" Install_AsService_Manual

  ExecWait '"$INSTDIR\FileZilla Server.exe" /install auto'
  goto done
 Install_AsService_Manual:
  ExecWait '"$INSTDIR\FileZilla Server.exe" /install'
  goto done
StrCmp $R0 "Install as service, started manually" Install_AsService_Manual (You want this to be true)

To change the default install state:
From StartupOptions.ini

Code: Select all

[Field 2]
Type=Droplist
State=Install as service, started with Windows (default)
ListItems=Install as service, started with Windows (default)|Install as service, started manually|Do not install as service, start server automatically (not recommended)
Left=0
Right=-1
Top=11
Bottom=200
Change "State= ..." to "State= Install as service, started manually"

steveatquinata
500 Command not understood
Posts: 4
Joined: 2009-07-03 09:15
First name: Steve
Last name: Jarvis

Re: Asking every start Stop server?

#9 Post by steveatquinata » 2009-07-14 09:10

This is fine, but it doesn't stop the "Question. Stop Server?" prompt from appearing when I try to stop the server.

The way round the problem turns out to be not to use the /start and /stop options at all, but to start and stop the service using

net stop "FileZilla Server FTP server"
net start "FileZilla Server FTP server"

This stops and starts the server with no problem and no unwanted prompts.

Post Reply