Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 restart??
Google
Post new topic Reply to topic
Author Message
DennyLoko
 
 


Joined: 26 Mar 2006
Posts: 3

PostPosted: Thu Apr 13, 2006 4:48 pm Reply with quoteBack to top

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.
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Fri Apr 14, 2006 5:49 am Reply with quoteBack to top

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
View user's profileSend private message
DennyLoko
 
 


Joined: 26 Mar 2006
Posts: 3

PostPosted: Sun Apr 16, 2006 10:13 pm Reply with quoteBack to top

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...
View user's profileSend private message
jjohall2000
 
 


Joined: 08 Jun 2006
Posts: 11

PostPosted: Mon Jun 12, 2006 9:06 pm Reply with quoteBack to top

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 user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



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