The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
70 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
1answer
41 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
1answer
37 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
0answers
26 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
1answer
42 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 ...
0
votes
1answer
138 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. ...
-1
votes
5answers
396 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
21 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 ...
-1
votes
1answer
353 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 ...
5
votes
2answers
260 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
0answers
365 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 ...
0
votes
1answer
644 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
1answer
189 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
1answer
191 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
2answers
68 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
1answer
533 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
0
votes
2answers
579 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 ...
0
votes
2answers
1k 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
1k 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 ...
1
vote
0answers
63 views

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 ...
0
votes
1answer
138 views

What is the “best” `start on` value for an Upstart (init) scripts?

I often see start on runlevel [2345] in Upstart init scripts, but sometimes (e.g., here) I see other events being used to determine start time. How do I know which events (or status codes) should be ...
2
votes
2answers
147 views

Is it acceptable to use `grep` to check for the presence of a string in a file within an init script?

Is it okay for me to check the contents of a file for a given string with grep in an init script? I am concerned about introducing dependencies and general convention when it comes init scripts, and ...
5
votes
3answers
1k views

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 ...
0
votes
1answer
146 views

svnserve -d child process spawning and svn connections under netstat

I see many svnserve -d processes running on my CentOS 6 box, one with the PID 400 and PPID 1 and the rest with PPID 400. I take this to mean the first one is started by init scripts (i know it is) ...
0
votes
1answer
320 views

Ubuntu - Upstart with a python script that start and finish their own processes

I'm trying to setup with Upstart a python script that launch several internal procs and kill them if is required with this sentences: $ listener.py -startall $ listener.py -killall My Upstart file: ...
4
votes
2answers
23k views

How to list services/daemons started at boot _and_ check their loading order

I want to be sure in what order services are started during boot process in Debian based systems (Debian Squeeze in particular). Thanks in advance.
1
vote
1answer
1k views

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 ...
1
vote
1answer
956 views

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 ...
0
votes
1answer
169 views

runuser in rc.local

I have to setup port forwarding on system start and have this configured in my rc.local runuser -l phpAdmin -c 'ssh -f -N -L 9904:localhost:3306 phpAdmin@<server>' When rc.local is executed, ...
0
votes
1answer
160 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 ...
4
votes
1answer
92 views

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 ...
0
votes
1answer
527 views

can't access kloxo control panel after restarting server

I restart server by init 6 and now I can't access to my kloxo server with 7778 or 7777 ports. I checked apf firewall configuration and 7777 and 7778 are opened. where is the problem and how should I ...
0
votes
5answers
863 views

Weird init script issue with corosync

This probably has a simple explanation, but I certainly can't think of it. I've got corosync installed (via yum), with it's default init script. Something is strange on this particular CentOS ...
2
votes
1answer
163 views

Upstart and pre/post scripts

I run into an issue with upstart where I want to update an init config, but just restarting the job doesn't apply the changes. For example: I've got job xyz running I modify the /etc/init/xyz.conf ...
3
votes
3answers
1k views

CentOS: Init scripts failing to start for some unknown reason

I'm running CentOS 6.2 - I've just migrated some applications over to a failover server, and copied their init scripts into /etc/init.d. I've made them executable, added them to chkconfig, with ...
0
votes
1answer
963 views

Can I use Upstart to start a script which requires the user's X session?

I wrote a script which greps through the output of synclient to determine whether a laptop's touchpad has miraculously turned itself off (Ubuntu seems to /love/ doing this recently) and, if so, turns ...
1
vote
0answers
406 views

Ubuntu 10.04 on vServer: SSHD fails to come up after apt-get upgrade

I have a vServer running Ubuntu Linux 10.04 LTS in a Parallels container. Yesterday, I updated packages using apt-get upgrade. After the upgrade, I could not longer log into the machine using SSH. I ...
0
votes
1answer
409 views

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 ...
2
votes
1answer
790 views

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 ...
1
vote
0answers
653 views

init 5 kdump fail

Whenever I do a init 5 runlevel. The System goes like this.. Starting portreserve: [ ok ] Starting irqbalance: [ ok ] Starting kdump: [FAILED] ...
1
vote
1answer
774 views

How do you stop PostgreSQL from starting a cluster under linux (Ubuntu)

I need to re-build a cluster due to some incorrect parameters set when it was first created. In particular every database in the cluster is set to LC_COLLATE of en_GB.UTF8 and needs to be changed to ...
2
votes
0answers
214 views

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 ...
1
vote
0answers
430 views

CPU load 1 because of init (PID 1) process?

On a new VPS, I upgraded Ubuntu 10.10 to Oneiric. I now have an init process (PID 1) which has CPU load 1. This is the same, even if I reboot. Why?
3
votes
2answers
145 views

Is it possible to set an Upstart service to stop $LAST

I'm wanting the rsyslog service to run until the last moment to ensure we receive as much logging as possible on our central logging servers. On Ubuntu 11.04, rsyslog's stop line is set to "stop on ...
2
votes
2answers
1k views

Running sudo commands in cloud-init script

I'm developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure. What I do is: run a Fabric script which connects to EC2 and initializes a new instance, ...
1
vote
2answers
813 views

Oneiric's init (upstart) taking up 99% cpu on openvz

I'm having a problem with a openvz vps which came with Ubuntu Natty (11.04) and I recently upgraded to Oneiric (11.10). After a reboot I found the init process stuck at ~99% cpu and the loadavg ...
3
votes
2answers
4k views

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 ...
1
vote
3answers
11k views

/etc/inittab respawn script migrating from RHEL/CentOS 5.x to 6.x

I have a non-forking perl script running as a TCP-sockets daemon (this script is a backend for a multiplayer game) in CentOS 5.7. It is being started and respawned by /etc/inittab: ...