Questions tagged [init]
The init tag has no usage guidance.
119
questions
0
votes
0
answers
68
views
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 ...
0
votes
1
answer
65
views
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 ...
0
votes
1
answer
531
views
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 ...
0
votes
0
answers
274
views
Is it possible to get systemd to monitor a process that it does not start?
Some of our startup scripts have an ExecStart line that runs a curl command to start jobs from our Jenkins build server.
Systemd does not know anything about the job that is started as a result of ...
0
votes
1
answer
41
views
Is systemd right for this task?
Currently, there's a fairly complex Python script that manages several dozen processes across a few servers. Each individual process has the same setup/requirements:
Main process must come up and be ...
0
votes
1
answer
3k
views
'systemctl restart service' not working on CentOS 7
I have a custom service managed by an init script in /etc/init.d and, after upgrading to CentOS 7, with systemd, 'systemctl restart service' is not working correctly. I need to execute two times '...
3
votes
1
answer
6k
views
whats the difference between sigkill and sigabrt? [closed]
The other day I experienced a halt in my python application with sigabrt, but I knew that the init should send a sigkill signal. I'm curious what's the difference between them, if any? Can someone ...
0
votes
0
answers
74
views
Which init system is main on particular system?
I have installed application with several init scripts as for dpkg -L application shows. For example:
/etc/init/application.conf
/etc/init.d/application
/usr/systemd/applaication.service
But i use ...
0
votes
1
answer
701
views
Disabling MariaDb on Debian jessie doesn't work
I have MariaDb installed on Debian jessie. I need to remove it from automatic system startup. I tried recommended commands but they did not work:
root@debian:/home/gameboy# systemctl disable mysql
...
5
votes
3
answers
6k
views
NFS server not serving share after reboot
I have two Linode containers. Box A is our general purpose web server. It occasionally needs to access Box B, which is set up as an NFS server.
When Box B reboots, Box A is unable to access any NFS ...
0
votes
0
answers
782
views
Why corrupted rc.sysinit file create syslogd error
During boot the system hangs, and the last message while it hangs is:
Starting system logger: Can't open or create /var/run/syslogd.pid. Can't write pid.
After a while I discovered that /etc/init/rc....
1
vote
0
answers
31
views
Start script are not cleared table of processes
I have a proxy server, all ok. But, i have some problems & questions.
First: when i make "/etc/init.d/nginx stop" or "/etc/init.d/nginx restart", of my config, it not reload and all nginx process ...
1
vote
1
answer
826
views
s6 supervisor: variable set with s6-envdir can't be used
I'm trying to wrap my head around s6 supervisor suite. I've figured out run and log but I'm stuck with s6-envdir and I'm not sure how do I use it.
I see that environment variable gets set, but I can'...
3
votes
1
answer
5k
views
init doesn't kill zombies
I have some zombie processes on my system. I've killed the parent of those zombies hoping init will take over and free up the resources (lots of sockets in CLOSE_WAIT). However init is not removing ...
31
votes
4
answers
43k
views
How to use the `$HOME` environment variable in systemd service files
I am trying to use the $HOME environment variable in the ExecStart. I tried many different things like $HOME and ${HOME} but nothing seems to be working
ExecStart=${HOME}/bin/some-binary
Anyone ...
0
votes
1
answer
896
views
rsyslogd wont start correctly on Ubuntu 14.04.4 LTS while using the Init-Script
somehow my init-script for rsyslogd does not work. I tried to enable rsyslogd to accept logging-data on udp:514.
If I start my rsyslogd via Init-Script, no logging-data is forwarded. Not even syslog! ...
1
vote
2
answers
4k
views
Unable to do a PXE boot, "no filesystem could mount root" error
I'm trying to do a PXE boot with an image I created, but after loading the image and the kernel, I get the following error message:
The main error message is this:
No filesystem could mount root, ...
1
vote
1
answer
383
views
How to boot after Systemd startup into program/script
I try to write a network/environment configurator for a distributed OVA appliance, similar to what Github Enterprise does, see https://github-images.s3.amazonaws.com/enterprise/Enterprise-QS-...
-1
votes
2
answers
2k
views
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 ...
1
vote
0
answers
769
views
How to display init output to tty7 (or main tty)
I have created my first init script in a linux server (ubuntu if that adds any information) that checks for an update, downloads it and executes it in each hour. The init file is as follows:
/etc/...
3
votes
1
answer
2k
views
What initiates parsing of the /etc/sysconfig/network-scripts/ifcfg-* interface scripts?
I have been searching for a while and looking at source code and various scripts on the Linux filesystem and still have been unable to figure out what ultimately initiates the reading of the scripts ...
0
votes
1
answer
599
views
init / inittab respawn (count number of times it occurs) [closed]
I added the following line in my /etc/inittab to respawn a program if it crashes.
#test must always run.
aa:2345:respawn:/home/pi/test/test
Is there a way to know how many times the init/respawn ...
0
votes
1
answer
2k
views
Set RemainAfterExit=no for a classic init script in systemd
I run a custom service with a classic init script on Debian Jessie. Debian Jessie uses systemd. The reason that I use an init script is that I also use the same service on Debian Wheezy, which does ...
2
votes
1
answer
17k
views
How to find the file location of int.d scripts in ubuntu
I need location of a init.d script.
I am using service cinder-api start to start the service
Other init scripts are located at /etc/init.d/ location. But this service is not found in that location , ...
0
votes
0
answers
1k
views
Missing /etc/init.d/ipsec script after installing strongswan 5.3.2 from source
Ubuntu 14.04 (Amazon's Ubuntu AMI). Installed strongswan 5.3.2 from source (latest version in repo is too old and doesn't work). 1 question:
1) Noticed that the /init.d/ipsec (or /init/) script is ...
0
votes
0
answers
163
views
How to turn off and on heartbeat service when haproxy is turned off and on?
I'd like the heartbeat service to turn off before haproxy is stopped and to turn on before it starts on a Ubuntu 14.04 Server. What is the best way to accomplish this? I'm sure one of these days I'm ...
0
votes
1
answer
81
views
Prevent init to restart services when changing run-level
When a service, most notably httpd is configured to run in level 3 and 5 (on CentOS 6.5) and the current run-level is 3 and I move to 5 by init 5, then init restarts httpd which is silly IMHO. Is ...
88
votes
7
answers
243k
views
Best way to disable swap in Linux
I am running a custom compiled 3.18.9 kernel and I am wondering about the best way to disable swap on the system. I also use init if it makes a difference.
Is it enough to comment or remove the swap ...
1
vote
1
answer
2k
views
systemd Unit file for GitLab
I am currently writing a Puppet module to get GitLab running on CentOS 6/7. For the CentOS 7 install I need to write a systemd unit file to start the gitlab service (which is actually Unicorn & ...
3
votes
2
answers
9k
views
How to respawn a script in RHEL/Centos6 when /etc/inittab has been deprecated?
I have a custom init script and I want that script to be respawned if in case the process dies.
In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
1
vote
1
answer
332
views
init process' nice level
The init process on a Debian server (VPS) I've inherited has its nice value set to +10.
There's nothing particularly obscure installed on the system. It has a LAMP stack and does a lot of IO and will ...
-1
votes
1
answer
64
views
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 ...
1
vote
0
answers
66
views
Init script to run overlapping servers at service restart
How can I create a init script that starts (and tracks) the new process before the old is completely terminated at restart?
I am developing a node.js service that needs to be able to restart ...
1
vote
1
answer
509
views
Script before shutdown with network on
I need to generate a SMS / Email alert when the server´s UPS is finishing its charge. We have a car battery connected to the motherboard that works as a UPS (http://www.mini-box.com/M2-ATX-160w-...
1
vote
1
answer
1k
views
Solaris 10 init failing to reap zombie processes
ps currently shows 17617 zombie processes, all of which have a ppid of 1/init. init should be reaping these defunct processes, but isn't for some reason. The number of defunct processes is growing.
...
16
votes
5
answers
25k
views
Standard or best way to keep alive process started by init.d
I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive.
Or even better, is there a way to keep it alive directly from /etc/init.d?
Specifically, I ...
2
votes
2
answers
19k
views
Server won't boot, kernel panic - not syncing
After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error:
Kernel panic - not syncing: Attempted to kill init!
Panic occurred, switching back to text console
When ...
1
vote
1
answer
45
views
(initscripts) Execute a command, if the command does not complete in 10 seconds, run another
On (Debian) Linux I want to:
Execute a command.
If the command doesn't complete in 10 seconds, kill it and try another command.
The use-case is:
I have a daemon service which I would like to shut ...
0
votes
1
answer
1k
views
Removeing ulimit from boot / init
In CentOs as from version 6 there is a by default process limit 1024 for every user i.e /etc/security/limits.d/90-nproc.conf
* soft nproc 1024
I have to execute a backend service/...
5
votes
2
answers
1k
views
Is it safe to change runlevel inside a cron script?
I want to do a nightly "hotclone" of server A to server B. It's recommended that server B be running minimal daemons during this action so I want to create a "minimal" runlevel which pretty much only ...
0
votes
0
answers
760
views
setuid upstart not working
I have created a .conf file in which I include
setuid mario
setgid mario
in order to run as mario user.
The program I run in the exec command is forever which runs an instance of node which ...
1
vote
2
answers
1k
views
why docker not executing init as lxc
Docker is not running init. So services are not started during startup. Lxc runs init during lxc-start.Since Docker is using lxc why it is not running init. What are the advantages of not running init ...
2
votes
1
answer
975
views
Waiting for devices to come up on Debian boot
I'm running OpenVPN and dnsmasmq on my wheezy system. Dnsmasq is only necessary for VPN and local users, so I don't want it to listen on all devices (yes, there is also a firewall, anyways).
When ...
1
vote
1
answer
1k
views
How to supply custom init script to Azure instance
Is it possible to create an instance specific init script and pass it to a virtual machine that is created via the API of Microsoft Azure? I know this from AWS, but could not find a way to do this on ...
0
votes
2
answers
96
views
This script won't execute on startup, ideas?
The distribution is RHEL 5.
The script has been added to chkconfig like so:
# chkconfig --add script
# chkconfig script on
But it refuses to start when taking up the machine, what could be the ...
1
vote
1
answer
2k
views
(Debian) Init script auto respawn? [closed]
I created a service script in /etc/init.d (Debian) that is working - I can start/stop/status/restart. But it is not respawning. Is it possible to respawn?
Thanks in advance
11
votes
2
answers
16k
views
Permanently Disable Init Service
I just provisioned a new VPS running CentOS 6, and it comes with Apache.
I want to disable Apache, because I will be using Nginx instead.
I know I can just delete the script in /etc/init.d/, but I ...
1
vote
2
answers
3k
views
Ubuntu Crontab or init script startup [duplicate]
What am I doing wrong here with cron on boot?
Example:
To launch manually: screen -S example ./script.sh
To recover manually: screen -x example
now, I just try to do the same thing (well, the ...
10
votes
5
answers
30k
views
runit - unable to open supervise/ok: file does not exist
I'm trying to figure out why runit will not boot or give me the status for the managed applications. Running on Ubuntu 12.04.
I created /service, /etc/sv/myapp (with a run script, a config file, a ...
5
votes
1
answer
10k
views
systemd to wait for command to complete before restart/shutdown or killing other processes
When I'm initiating "reboot" or "poweroff", systemd is killing all the processes, but I need it to wait for one particular application to finish before stopping other services.
Actually, I want ...