Questions tagged [init]

119 questions
5
votes
3 answers

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 shares no matter what I do. After several hours of…
samh
  • 213
  • 4
  • 11
5
votes
4 answers

Process monitoring services

I'm looking into different services that help keep processes up and running (auto-restart in the event of a crash). Which ones do you prefer and what are your commends/suggestions? Here are a few methods I've found: respawn in…
Lin
  • 2,909
  • 7
  • 27
  • 25
5
votes
2 answers

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 runs sshd and switch to/from that runlevel in…
SpliFF
  • 394
  • 2
  • 8
  • 24
5
votes
1 answer

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 Virtualbox vm clean shutdown/savestate. Have no problem…
GioMac
  • 4,544
  • 4
  • 27
  • 41
5
votes
3 answers

chkconfig equivalent for upstart jobs on CentOS6

On RHEL6/CentOS6 what is the upstart way to: chkconfig add my-svc chkconfig my-svc on Explanation: I have written an /etc/init/xvc0.conf job. I can do start xvc0 on the CLI, but after reboot initctl list gives me ... xvc0 stop/waiting ... So…
Alien Life Form
  • 2,309
  • 2
  • 21
  • 32
5
votes
2 answers

init script that logs output of the script

How can this be done? I know it's pretty simple and includes appending something like & or &> to the actual command that starts the init script. But, what is the best approach and how can it be ensured that the init script detaches itself, suppose…
kapeels
  • 355
  • 1
  • 6
  • 18
5
votes
6 answers

How to daemonize servers on Ubuntu?

I've got a couple of servers on my Ubuntu that need to be restart-proof daemonized. How can I do that with generic init first process? Should I swap to upstart or some other replacement?
Alex
  • 2,357
  • 5
  • 32
  • 41
4
votes
3 answers

Init.d vs Cron - which to use?

I'm writing a silly little script to email people when a (Debian Lenny) server boots. Right now I've set it up as an init.d script using update-rc.d, but then I realized I could have just used cron jobs instead. Is it better to use cron jobs for…
Ibrahim
  • 394
  • 5
  • 12
4
votes
2 answers

Where do they belong? "ifconfig eth0 up" & "dhclient"

I have a minimal linux installation. The problem is that in order to access the web I have to issue ifconfig eth0 up dhclient after every restart. Where is the canonical place of these commands on an everyday linux system? Or rather where should I…
noname
  • 115
  • 2
  • 6
4
votes
1 answer

How to review the init script output on a dedicated server?

I have rented a dedicated server, running Debian stable. Is the startup output that you would see on the screen (if you had one) stored anywhere? If not, is there a non-intrusive way to make that data available after the next reboot? Or how else do…
Joachim Breitner
  • 3,779
  • 3
  • 18
  • 21
4
votes
1 answer

How to install init-checkconf for upstart?

Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart install $ uname -a Linux VM1…
Allyl Isocyanate
  • 299
  • 1
  • 4
  • 9
4
votes
0 answers

Linux equivalent of OS X "Launchd", with respect to use by non-root users?

Is there a good way for non-root users to start "managed" processes? In this case, I am using managed" to describe a process that starts up when the user logs in, is monitored by some sort of process supervisor (like init), restarted if it fails,…
larsks
  • 43,623
  • 14
  • 121
  • 180
4
votes
4 answers

open-iscsi does not login into targets on boot

We have a Debian Lenny server with open-iscsi that's configured to log into a target automatically: hostname:~# grep \\.startup /etc/iscsi/iscsid.conf node.startup = automatic hostname:~# grep \\.startup…
Creshal
  • 259
  • 1
  • 5
  • 16
3
votes
1 answer

whats the difference between sigkill and sigabrt?

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 give me some resources to read more about this?
Rohola Zandie
  • 143
  • 1
  • 4
3
votes
5 answers

Managing per-user rc.d init scripts

I want to delegate SysV init scripts to each user. Like the SysV init, each item in ${HOME}/rc.d starting with S will be launched on server start-up with the start argument. The same for the server shut-down with the one starting with K and with the…
Steve Schnepp
  • 2,314
  • 3
  • 21
  • 28