3
votes
2answers
27 views

Execution order of runlevel scripts

My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example K05foo -> ... K10bar -> ... K80baz -> ... S10somemore -> ... S90halt -> ... Is it correct, that the ...
0
votes
0answers
11 views

How to use input variables within a systemd script? [duplicate]

I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command. However, when using this command I need to be ...
-2
votes
1answer
142 views

How can i create a startup script with sles 11? [closed]

I have a problem in one of my servers. I have a SLES 11 server and I have bond (bond0) two ethernet cards (eth0 and eth1). i setup mtu to be 9000 on all interfaces. When i reboot the server the mtu ...
1
vote
1answer
354 views

Permanently change hostname of Debian Squeeze virtual server

I have a virtual server running Debian Squeeze. I can change the hostname by running the hostname new.host.name command or by editing /etc/hostname and then running /etc/init.d/hostname.sh, but after ...
0
votes
1answer
131 views

init is the parent for a script: how can I find what initially launched the script?

The box in question is RHEL/CentOS 5.5 x86_64. It has been up for 80+ days. A custom watchdog script exists on the server which performs a variety of tasks and this particular script accepts a few ...
0
votes
2answers
591 views

Chroot on startup

I have a script that runs on startup, but it wont launch a application in chroot. #!/bin/sh /usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib" echo "script ...
1
vote
1answer
508 views

Run unison in background on startup?

I'm running Debian 6 64bit. What I'm trying to do is run Unison on startup to constantly monitor files on the LAMP server I have running on my VM and sync that with the VM Shared folder. while true ...
1
vote
1answer
332 views

EC2 startup script?

We're using Amazon's 32-bit Linux AMI. What is the best way to automatically run a script after the OS is loaded (not on ssh login, just after it has booted up)?
2
votes
4answers
808 views

Best way to tag/identify processes for killing them later?

In my linux startup scripts, when I start a process like (openvpn used for this example, but the question is general to any process); openvpn --config /etc/myserver.conf what is the best way to ...
2
votes
3answers
206 views

Start Linux scripts sequentially with blocking

I want to create a script to start two different scripts in sequence. The first script start an application server, which although the process has started (and i'm back at the prompt), it will only ...