The init.d tag has no wiki summary.
4
votes
1answer
33 views
How does init determine which devices to modprobe?
I'm building a totally custom initramfs for a netbooting project and in the process learning a lot about it, but I'm a little puzzled by the loading of modules.
I know modprobe can be used to load ...
0
votes
2answers
29 views
Launch a program on boot (Debian server)
Path to folder: root/CumulusServer
Command to execute: ./CumulusServer --daemon [--pidfile=/var/run/CumulusServer.pid]
I've spent considerable time trying to figure out how to modify init.d? Any ...
1
vote
2answers
49 views
How do I force booting in text mode?
Newer Linux distributions have the idea to boot into graphics modes.
The grub menu does this.
The init.d system does this.
X does this.
I can justify X. But both grub and init.d have only caused ...
1
vote
2answers
52 views
How to debug init.d script that isn't being run
I am trying to get god to start during boot on Debian. I added a script to the /etc/init.d/ directory which looks like this.
#!/usr/bin/sh
### BEGIN INIT INFO
# Provides: god
# ...
0
votes
0answers
11 views
openfire chat server Deamon not getting start while server up every time
we using a Chat server, its installed with openfire, for local office use we installed it, every day morning while server getting ON openfire service is not getting started, I have added it in run ...
0
votes
0answers
19 views
Can you have two paths listed in init.d file?
In /etc/init.d/red5 can I list two home paths for different programs using it that are in different locations?
I have red5 set up in /var/www/html
but I also have it set up in ...
1
vote
1answer
160 views
hostapd will not start via “service” — but will start directly
I am having trouble getting hostapd to start as a service. It fails when I try to start it:
$ sudo service hostapd start
[FAIL] Starting advanced IEEE 802.11 management: hostapd failed!
From what ...
0
votes
0answers
16 views
Boot Halts if Time if Reset
I have an old powerbook g4 with a dead battery & I am trying to run ubuntu 10.04 on it. Whenever the power cord gets unplugged the date gets set back to Dec. 31st 1969. Apparently when you ...
0
votes
0answers
70 views
Tomcat fake start on startup with init.d
I have my tomcat (tomee) installation at /opt/tomee and I can correctly launch it with:
$ /opt/tomee/bin/startup.sh
Using CATALINA_BASE: /opt/tomee
Using CATALINA_HOME: /opt/tomee
Using ...
1
vote
1answer
34 views
Use /etc/init.d/fetchmail with the personnal ~/.fetchmailrc
Now, I have two users in my system using fetchmail with a personal ~/.fetchmailrc and syncing there mails with the command fetchmail -kv --uidl -m '\''/usr/bin/procmail -d %T'\ (In a cron but this ...
1
vote
0answers
123 views
Debian init.d with a working C++ daemon, unexpected results
I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
1
vote
1answer
158 views
Can I safely disable abrtd on CentOS 6?
There is this nice new daemon called abrtd running on CentOS6.
This was inherited from upstream RHEL6. There this can be used (for instance) to automatically generate service-requests.
In an ...
0
votes
1answer
54 views
what starts runsv on a Debian system using init and how?
A bit of background: I installed git-daemon-run on a Debian system, and now git-daemon starts at boot automatically, even though there is no init script for it in /etc/init.d.
I did some digging and ...
1
vote
1answer
63 views
Create service from command [closed]
I have following command which I try to setup to run on startup:
su -l hive -c "nohup hive --service metastore > /var/log/hive/hive.out 2> /var/log/hive/hive.log &"
I was thinking about ...
0
votes
1answer
36 views
Trouble Running Emacs Daemon on Ubuntu Boot
I want to run emacs as a daemon, on Ubuntu bootup.
The daemon call works, and the init script works, when called in a logged in session. However, when I boot my system, the emacs init script doesn't ...
13
votes
2answers
582 views
How secure is keeping non-root owned scripts in /etc/init.d?
I have an application which runs as a daemon and is controlled by a script in /etc/init.d
Sometimes we need to change some parameters of startup/control of these scripts and then restart the daemon. ...
0
votes
0answers
85 views
How does killproc knows what PID to kill?
When I look at my /etc/rc.d/init.d/functions, I see the following under my killproc() function.
if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
RC=7 # Program is not running
...
1
vote
1answer
409 views
Make screen start as Daemon for a Minecraft server
I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?.
I have run update-rc.d -f minecraft.start defaults
This is what my ...
1
vote
1answer
907 views
How to start teamspeak 3 on boot, ubuntu server 12.04
So I'm quite new to linux but I'm starting to understand it. I have a Ubuntu Server 12.04 system, fresh install, and I installed a teamspeak 3 server on it:
$ sudo useradd teamspeak
(provided user ...
5
votes
2answers
183 views
Is it possible to execute a script as first at shutdown/reboot on Debian?
I am currently trying to register a script (located in the /etc/init.d) in a way that makes this script being executed as the first script/programm at shutdown/reboot (change to running level 0 or 6).
...
1
vote
2answers
388 views
PHP exec expect script with SCP then SSH
I have a PHP page which runs the following expect script to upload a file to another server on my network:
#!/usr/bin/expect -f
set password [lindex $argv 0]
spawn /usr/bin/scp /home/Dave/bin/test ...
-3
votes
1answer
62 views
where is this HOME environment variable and what do I have to add -H too it?
I recently attempted to run a boot up script which failed I didn't know why it failed so I posted a question about that here.
chkconfig bootup script failing, script runs good manually
Where the ...
4
votes
2answers
450 views
How to regenerate /etc/init.d/.depend.(boot|start|stop) on Debian?
Suppose one deleted the following files.
/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop
How to regenerate them?
3
votes
2answers
123 views
How to make /etc/init.d script act like it's launched under X?
I'm trying to track down some quirkiness with a Java application that misbehaves when launched via a startup script in /etc/init.d , but runs fine when you open a GUI terminal window and run it ...
6
votes
1answer
306 views
What is the difference between start-stop-daemon and running with &?
I am setting up a service in /etc/init.d. I am looking at various scripts in there, some are implemented with start-stop-daemon ... and some with /path/to/script &.
All of them save the pid in a ...
1
vote
1answer
143 views
How to respawn vpnc when it stops?
As root, I've setup a crontab rule that launches vpnc everyday early in the morning (before I arrive at my workplace). But it often occurs that the vpn stopped mid day. As a result, I have to sudo ...
1
vote
1answer
222 views
Daemons not starting during the boot on PUIAS (RedHat) 6.4
I am total Linux n00b entrusted with bunch of PUIAS (RedHat) 6.4 servers and desktops. I noticed after rebooting my computing nodes (done just for testing purposes) that many of the daemons which are ...
2
votes
2answers
385 views
editing /etc/init.d/rc.local to run after login tty processes
doing a ps-e, I see the following on startup:
PID TTY CMD
...
1880 ? my_auto_script
1881 tty1 login
1882 tty2 getty
...
my_auto_script is called from /etc/rc.local. I have /etc/init.d/rc.local ...
3
votes
1answer
420 views
PID file not accessible after update of nginx
After I removed the version 0.7.x which was delivered by the Debian standard packages, I installed the version 1.4.1 of nginx by source.
It is possible to start nginx with service nginx start and I ...
3
votes
1answer
701 views
Where is my /etc/init.d/skeleton on OpenSuse 12.3?
On a fresh install of OpenSuse 12.3, I want to "daemonize" a program. And, on all examples found on Internet, I see I have to create first a /etc/init.d/myscript based on the /etc/init.d/skeleton...
...
3
votes
2answers
280 views
How to update an init script
What is the proper way to update an init script an ubuntu system?
I am trying to upgrade my version of gitlab from 6-0 to 6-1, part of the upgrade consists of replacing the init script.
Upgrade ...
2
votes
3answers
425 views
Cannot add script to init.d
I have installed gerrit on a remote ubuntu server. Now I would like it to automatically start when the server reboots. I am trying to follow this:
...
1
vote
0answers
460 views
Bittorrent Sync Autostart as a Service
I'm running a raspberry pi with the latest raspbian (debian) on it.
I've installed btsync. Now I want to run Bittorrent Sync, when the system boots, not only when somebody logs in.
Do I have to run ...
4
votes
3answers
844 views
Use start-stop-daemon for a PHP server
I'm working on a socket server written in PHP.
This part of the work is done but now I need to run it as a daemon.
For this I've tried to use start-stop-daemon but it doesn't work. My server is ...
1
vote
1answer
536 views
adding a program on start-up by using LSBInitScripts
I use Debian Lenny (I know lenny is old and other bla bla) and would like to place a program on the start-up. I use update-rc.d by adding an executable file on /etc/init.d. By referring to ...
4
votes
2answers
367 views
When running to a run level does it execute previous run levels?
If I tell my system to go to run level 3 does that mean that it first runs through run level 0, 1, 2, and then finally runs through run level 3?
I thought the answer to this question was yes. But ...
0
votes
2answers
271 views
How to restore the /etc/init.d/pure-ftpd-mysql?
By a mistake... this is my new /etc/init.d/pure-ftpd-mysql:
/etc/init.d/pure-ftpd-mysql restart
How to install or recover the file? The standard apt-get remove, apt-get install or apt-get ...
3
votes
2answers
2k views
Run script on start up after everything else
OK, so there's a service (nagios) running on a Debian box that runs just fine, except for one very specific issue that only occurs after the box has been re-started. The issue is easily fixed by ...
2
votes
1answer
92 views
how to specify daemon dependency upon another daemon
in /etc/init.d/
first daemon
# Provides: first
# Required-Start: $remote_fs $syslog
second daemon
# Provides: second
# Required-Start: $remote_fs $syslog first
Is this ...
2
votes
2answers
609 views
init.d script causes boot hang
I successfully installed a script to automatically launch in /etc/init.d on my new Raspberry Pi.
Unfortunately, it is a node.js app that never returns, and therefore hangs the device during boot ...
3
votes
1answer
3k views
Create and control start up scripts in BusyBox
I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in ...
2
votes
2answers
664 views
Why is rcS required after file system is mounted by the kernel?
I am a beginner in embedded Linux, I have compiled the kernel without initramfs and kernel is booting fine. But It shows me rcS file is not found I have put it in /etc/init.d/rcS and my rcS file look ...
1
vote
1answer
36 views
Is xfstt necessary?
I am using Lubuntu 11.10. Every time when I shutdown the system I can read on the black screen an error for trying to stop xfstt. I found info about this process here. I have K20xfstt in /etc/rc0.d ...
1
vote
1answer
242 views
Which parameters were used by apt-get to install init scripts for a package?
After removing the init script for hdparm with # update-rc.d hdparm remove, the wish is to re-install/fix/repair the hdparm init script. In other words to undo the update-rc.d removal.
Calling # ...
1
vote
1answer
982 views
How to correctly remove mountnfs from /etc/init.d/
Cleaning up the boot process of a Debian squeeze installation running on kernel 3.2.0-0.bpo.3-amd64, I spotted several mountnfs scripts in /etc/init.d/:
# ls /etc/init.d/ | grep mountnfs
...
1
vote
1answer
185 views
For an init.d startup script, what is the ideal user to use as the owner of that process
Everyone says that running processes as root is bad, since it defeats the security and privileges model. But what user should be used to run a startup process? Is it really necessary to create a new ...
3
votes
4answers
15k views
How to run my script after SuSE finished booting up?
I want my server to notify me (via growl) that the (re)booting finished. I have the php file that sends out the growl ready but I do not know what file I should add the line in.
What file I need to ...
1
vote
3answers
3k views
Difference between /etc/init.d/networking restart and invoke-rc.d networking restart
Is there any real difference between /etc/init.d/networking restart and invoke-rc.d networking restart (Debian)?
1
vote
4answers
2k views
When to mount /tmp (and other temporary directories)
When is the right time to mount /tmp (on Debian)? For /home I would not feel bad just to echo "/dev/foo /home type defaults 0 0" >>/etc/fstab - but can I be sure that /tmp is not used by any ...
2
votes
1answer
820 views
VMWare daemon doesn't startup when system starts
I have installed VMware Player on my Debian squueze, but after the reboot the vmware daemon(/etc/init.d/vmware) does not start up automatically, i have tried without any success to set the daemon ...




