|
|
 |
Author |
Message |
DennyLoko

Joined: 26 Mar 2006
Posts: 3
|
Posted:
Thu Apr 13, 2006 4:48 pm |
  |
Well, I tried to make one script that restart SlimFTPd, but it never is restarted...
Can someone help-me in this script?
I use windows XP, and I tried this things:
$ftprest = "net stop SlimFTPd & net start SlimFTPd";
$ftprest = "net stop SlimFTPd && net start SlimFTPd";
$ftprest = "net stop SlimFTPd" & "net start SlimFTPd";
$ftprest = "net stop SlimFTPd" && "net start SlimFTPd";
$ftprest = $ftpstop & $ftpstart;
...
well, I tried a lot of a things, and nothing work... how can I make um script to restart SlimFTPd by A2TCP without stop and start the SlimFTPd? I was thinking one script which make it automatically...
Thnx,
DennyLoko. |
|
|
  |
 |
Vlad Alexa Mancini
lead developer

Joined: 07 Jul 2003
Posts: 1539
|
Posted:
Fri Apr 14, 2006 5:49 am |
  |
obviously you can not stop a service and start it in the same second fraction
remove your changes and use something like :
Code: | system($ftpstop);
sleep(10);
system($ftpstart); |
for example , to wait 10 seconds for the service to stop |
|
|
  |
 |
DennyLoko

Joined: 26 Mar 2006
Posts: 3
|
Posted:
Sun Apr 16, 2006 10:13 pm |
  |
sorry, I'm not good on scripting...
I've tried this commands, because I tested it into cmd, and works fine...
well, later a I'll made the changes...
thnx... |
|
|
  |
 |
jjohall2000

Joined: 08 Jun 2006
Posts: 11
|
Posted:
Mon Jun 12, 2006 9:06 pm |
  |
Vlad Alexa Mancini wrote: | obviously you can not stop a service and start it in the same second fraction
remove your changes and use something like :
Code: | system($ftpstop);
sleep(10);
system($ftpstart); |
for example , to wait 10 seconds for the service to stop |
Hi,
This looks like a nice bit of code, but can someone give me an example where i can use the code to make it restart when i update and create a new user?
Many Thanx
jjohall2000 |
|
|
  |
 |
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Powered by phpBB
© 2001, 2002 phpBB Group :: FI Theme
All times are GMT
|