Questions tagged [init]
119 questions
1
vote
0 answers
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/init/updater.conf
start on (filesystem and stopped…

Blue Genie
- 83
- 6
1
vote
1 answer
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 & Sidekiq).
Here's the unit file I came up with based on…

kemra102
- 211
- 4
- 12
1
vote
1 answer
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 need upgrading soon.
My suspicion is that a…

jon
- 111
- 2
1
vote
0 answers
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 gracefully, for example at deploy of a new version. The…

Paso
- 131
- 1
- 4
1
vote
1 answer
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-Intelligent-Automotive-DC-DC-Power-Supply) When this…

Ezequiel
- 137
- 7
1
vote
1 answer
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.
Trying to force them to be reaped using preap…

wfaulk
- 6,878
- 7
- 46
- 75
1
vote
1 answer
(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 down gracefully.
It can be stopped by sending a TCP…

bryan_basho
- 91
- 1
- 5
1
vote
2 answers
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 and depending on supervisord for daemonization?

kalyan
- 249
- 1
- 3
- 11
1
vote
1 answer
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 MS Azure.
The only workaround I can think of it…

Elmar Weber
- 492
- 1
- 7
- 18
1
vote
1 answer
(Debian) Init script auto respawn?
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

Winston
- 113
- 4
1
vote
2 answers
Ubuntu Crontab or init script startup
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 launch part) using cron on boot
@reboot cd…

Atomiklan
- 549
- 1
- 8
- 16
1
vote
0 answers
Ubuntu: An init script that requires mysql
We have built some software that connects to MySQL and should be started on an Ubuntu server at boot.
What we're missing is how to ensure it starts at boot after MySQL.
Our init script includes the following at the top:
### BEGIN INIT INFO
#…

jmkgreen
- 113
- 3
1
vote
2 answers
init.d not executing stop command on reboot
I have an init.d script to start a Python script:
#!/bin/sh
#
###############################################################################
# sd-agent
#
# Written by Boxed Ice
# A server monitoring daemon for…

davidmytton
- 666
- 3
- 7
- 17
1
vote
1 answer
Upstart: defining service dependencies / priorities
I am working on an app which runs several services / daemons using upstart. These should start on system startup, but only after the DB server (in our case mongo) was started. I am looking for the right upstart configuration to cause a service to…

shevron
- 326
- 2
- 4
- 10
1
vote
1 answer
Ubuntu upstart script for tracd hangs on start/stop
I'm trying to set up an Ubuntu (12.04 LTS) upstart script to manage Trac's built in web server as an upstream server for nginx.
Here is my init script /etc/init/tracd.conf. I used http://codebyko.se/2010/11/26/tracd-with-upstart-on-ubuntu/ (first…

jcampbelly
- 113
- 6