Jump to content

OffTopic: UPDATE -> start/stop apache and copy files to server


erich.wanker

Recommended Posts

Hi,

 

i am searching a way to update my uniGui- App and the needed files

 

HAS SOMEONE A SOLUTION OR A PIECE OF CODE?

 

 

procedure (thinkings since now)

 

1.) i want to stop the server (apache 2.4.3) every 24 hours (at 02:00 am)

 

2.) if apache service is down, first of all a textfile should be loaded from a fix URL

 

 every line of the textfile should have destionation and target: 

 www.myudateServer.com/files/unigui.dll   ->  uniServerPath/unigui.dll

 www.myudateServer.com/files/report1.rtm   ->  uniServerPath/files/reports/report1.rtm 

 www.myudateServer.com/files/report2.rtm   ->  uniServerPath/files/reports/report2.rtm 

..amd so on 

 

 

3.) the update programm should store the textfile in a mem and copy (line by line) every file 

 

4.) at the end -  apache service should start again

 

Allso (if possible) i want to stop the "firbird SQL server 2.3 with this "update programm"

 

ThanX for suggestions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...