Questions tagged [init]

119 questions
0
votes
1 answer

No init found. Try passing init= bootarg. ( linux fedora 14 - rackspace )

I have a server on Rackspace. It was working just fine. But this morning I found that it wasn't working, after a hard reboot (suggested by a rackspace chat support guy). I found that it was giving me the error: Begin: Running /scripts/init-bottom…
DylanJones_md
  • 111
  • 1
  • 6
0
votes
3 answers

linux, set affinity for init

What is a most convenient way to set affinity mask for init process in linux (debian) on the startup the system? I know about taskset, but i want set affinity mask for init on it's startup, so all processes will inherit it. Thank you.
Boris
  • 121
  • 2
  • 6
0
votes
3 answers

What creates /dev/stderr in FC14?

I'm wondering what creates /dev/stderr on FC14. rpm -qf doesn't show any package ownership. I've dug through the init scripts and can't find it anywhere. To provide some context, I'm creating a chroot'd jail to start with lxc.
Noah Campbell
  • 619
  • 2
  • 9
  • 15
0
votes
1 answer

Do something with Apache's root PID before it forks

I need to set a property on the root Apache process which in inherited by its children (e.g. oom_adj, cgroup membership). However, Apache will fork itself as soon as it starts. Using $$ in the init.d script doesn't seem to work - nothing is…
Vladimir Panteleev
  • 1,737
  • 5
  • 20
  • 34
0
votes
3 answers

Task on server shutdown and up

Which is the best way to run a script upon server restart and when server is up again? e.g. When services will be unavailable: irc_notify "Server is going down" when all services are available: irc_notify "Server is up again" Server shutdown may…
takeshin
  • 1,471
  • 3
  • 21
  • 28
0
votes
5 answers

How can I login on all linux terminals at once?

I always use more than one terminal, but always have to type login information in each one before using. How can I specify in inittab to only prompt for login info in tty1, and after successiful login automatically logon with the same user in all…
Thiago Padilha
  • 299
  • 1
  • 5
  • 10
0
votes
2 answers

Using ex in init scripts

I'm using ex to modify configuration files from an /etc/init.d/CONFIG script. I'm using debian squeeze (updated yesterday) My problem is: It's impossible to start ex / vi in init scripts with the vi / ex package of the current squeeze system. There…
Andreas Rehm
  • 851
  • 6
  • 11
0
votes
1 answer

Changing /lib directory from initramfs to mounted partition's /lib

I want to change the /lib loaded from initramfs to a mounted partition's /lib ideally without having to rm the initramfs' /lib and then symlink-ing to the new /lib. The problem with this approach is that once I delete the original /lib, my binaries…
Rystraum
  • 111
  • 3
0
votes
2 answers

Correct way to treat iptables init failure?

I'm initializing my iptables rules via /etc/network/if-pre-up.d/iptables, using iptables-restore. This works fine, but I'm a bit worried about what would happen, if that script failed for some reason (maybe the saved iptables file is corrupt or…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
0
votes
0 answers

Kubernetes Init timed out

Here is my configuration and I am trying to init and node as the master node i.e. control plane node. So I am trying to route traffic between master node and the worker nodes using a HA-Proxy node which is external machine outside of this cluster.…
0
votes
1 answer

Run custom s6 script in docker container once only

I'm using automation (ansible) to deploy a dockerised app (gitea). The app runs s6 in its docker entrypoint. I want to run my own script: after the container's first load (so the files and db are ready) at most once OPTION 1: I thought to add a…
lonix
  • 896
  • 10
  • 23
0
votes
1 answer

Why is technically possible for init to be a shell script?

I'm currently studying the boot process and composition of the different aspects of a GNU/Linux system and I can't rationaly explain this thing : you can write init inside an initramfs file as a shell script . Init is supposed to be the first…
user2485710
  • 151
  • 1
  • 4
-1
votes
2 answers

Linux init script service - delay until mysql socket is ready

How does one go about delaying a service init script in Linux until the MySQL socket exists? Does the sleep command in a startup script delay the entire boot process, or are init scripts each executed by a different thread to prevent blocking? I am…
OwN
  • 187
  • 3
  • 14
-1
votes
1 answer

Auto starting rc at startup

So here are the steps i am following . So i add a conf file inside /etc/init.d/myconffile And then to get System start/stop links i have to use the command sudo update-rc.d myconffile defaults 99 2 3 4 5 And then if i reboot Ubuntu server the…
raj
  • 1
1 2 3 4 5 6 7
8