Re: [CentOS] Run one-time startup script

2013-09-25 Thread Kai Schaetzl
Reindl Harald wrote on Fri, 20 Sep 2013 14:32:46 +0200: /etc/rc.d/rc.local Thanks for all the answers. First, I omitted to explicitely state that these are web servers. There is no dhcp, only one or, in a few cases, a few IP static IP addresses. Mostly Centos 5. Changing the data is *not*

Re: [CentOS] Run one-time startup script

2013-09-25 Thread Kai Schaetzl
Kai Schaetzl wrote on Wed, 25 Sep 2013 10:58:51 +0200: Google suggests a file /etc/rc.shutdown (or rc.local.shutdown?) which, if I understand correctly, would be carried out after the init stuff for the shutdown (rc0) has been done. rc.local.shutdown or rc.halt don't work. Seems I have to

Re: [CentOS] Run one-time startup script

2013-09-25 Thread Kai Schaetzl
Kai Schaetzl wrote on Wed, 25 Sep 2013 13:00:19 +0200: Seems I have to use an init script in rc0.d? I tested the following: /etc/rc.d/rc0.d/K000halt /etc/rc.d/rc0.d/K99zhalt /etc/rc.d/rc0.d/S000halt /etc/rc.d/rc0.d/S999halt Only /etc/rc.d/rc0.d/S000halt gets executed, e.g. the file that gets

Re: [CentOS] Run one-time startup script

2013-09-25 Thread Les Mikesell
On Wed, Sep 25, 2013 at 3:58 AM, Kai Schaetzl mailli...@conactive.com wrote: First, I omitted to explicitely state that these are web servers. There is no dhcp, only one or, in a few cases, a few IP static IP addresses. Mostly Centos 5. Changing the data is *not* the problem. As already said

Re: [CentOS] Run one-time startup script

2013-09-22 Thread Arun Khan
On Fri, Sep 20, 2013 at 9:11 PM, John R Pierce pie...@hogranch.com wrote: On 9/20/2013 5:31 AM, Kai Schaetzl wrote: I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm

[CentOS] Run one-time startup script

2013-09-20 Thread Kai Schaetzl
I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm thinking about the best method to do this. Where should I include/init this script? Or would it rather make more sense to do

Re: [CentOS] Run one-time startup script

2013-09-20 Thread Carl T. Miller
Kai Schaetzl wrote: Changes largely involve removing old files and putting new files in place (resolv.conf, hosts, sysconfig/network + network-scripts, firewall, postfix, httpd etc.). The only other change besides replacing files would be changing the IP address in a webcontrol interface in a

Re: [CentOS] Run one-time startup script

2013-09-20 Thread Carl T. Miller
Kai Schaetzl wrote: I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm thinking about the best method to do this. Where should I include/init this script? Or would it rather

Re: [CentOS] Run one-time startup script

2013-09-20 Thread John R Pierce
On 9/20/2013 5:31 AM, Kai Schaetzl wrote: I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm thinking about the best method to do this. Where should I include/init this script?

Re: [CentOS] Run one-time startup script

2013-09-20 Thread Les Mikesell
On Fri, Sep 20, 2013 at 10:13 AM, m.r...@5-cent.us wrote: Kai Schaetzl wrote: I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm thinking about the best method to do this.

Re: [CentOS] Run one-time startup script

2013-09-20 Thread m . roth
Kai Schaetzl wrote: I have to change IP numbers across a number of virtual and physical machines because of network center move. This has to be done before network startup, of course. I'm thinking about the best method to do this. Where should I include/init this script? Or would it rather