The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
2k 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 ...
1
vote
0answers
8 views

Multiple daemons init script

I have two daemons currently running on my development server (OpenSUSE 12). There are two daemon that work together as a whole and must start together and die together. Is there a standard way to ...
4
votes
2answers
52 views

Trigger an init script when a specific device is up and a kernel module has been loaded

On my ubuntu 12.04 servers, I need to write an init.d script that waits until the infiniband interface (device: mlx4_0, interface: ib0) is completely up, and until the knem kernel module is loaded. ...
2
votes
2answers
58 views

How can I make this System V init script start at boot?

I've installed udisks-glue on my Raspbian Raspberry Pi, along with a System V init script at /etc/init.d/udisks-glue (as per instructions here). I make it executable and run the following, which ...
2
votes
1answer
23 views

Late running of scripts during bootup, ending with a reboot without the login prompt

I'm making a special "installer" for an embedded system where I'd like the kernel to boot up, execute a set of things very late in the process where the peripherals have been set up and then reboot ...
4
votes
3answers
1k 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
2answers
318 views

disable init.d script in systemd

I changed the init system from sysvinit to systemd on a raspbian installation. The install boots fine, but now starts lightdm on boot. I don't want it to do that. I noticed lightdm.service is started ...
1
vote
1answer
37 views

What is the difference between rc, rc.local and rc.sysinit?

I tried to display the list of startup scripts for the current runlevel at bootup. I wrote the following code. rl=`runlevel | cut -d " " -f2` ls /etc/rc.d/rc$rl.d/S* | cut -d "/" -f5 sleep 10 It's ...
1
vote
0answers
73 views

checking sendmail status as NON root user

I am in the process of converting to CentOS 6.5 from 5.5 and need a way to check if sendmail is on or not. For reasons I don't want to go through, I need to be able to check if sendmail is ON as a ...
0
votes
2answers
731 views

Run a script at startup

I am using Ubuntu 14.04. I wrote a small script named trial. The contents of the script are as follows: #!/bin/sh SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin sh -c firefox I copied the ...
2
votes
2answers
71 views

Postponing ntpd

I am currently trying to cut boot time for an embedded Linux system. One way we figured we could do that is by postponing the ntp init.d script. The daemon tried to synchronize with the server via ...
4
votes
1answer
121 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
46 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 ...
2
votes
2answers
443 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
1k 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 # ...
1
vote
0answers
63 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
24 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 ...
0
votes
0answers
29 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
165 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
168 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
309 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
966 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
135 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
1k 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 ...
0
votes
1answer
85 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 ...
1
vote
1answer
145 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 ...
13
votes
2answers
796 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
334 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
3k 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
780 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
489 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
81 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 ...
2
votes
1answer
155 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 ...
6
votes
2answers
888 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
165 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 ...
7
votes
1answer
1k 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
253 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
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
1answer
453 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
625 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
650 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
2answers
370 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 ...
3
votes
1answer
1k 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... ...
2
votes
3answers
810 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
664 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
2answers
3k 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 ...
1
vote
1answer
978 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
429 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
331 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
4answers
18k 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 ...