The init.d directory contains a number of start/stop scripts for various services on your system.

learn more… | top users | synonyms

0
votes
1answer
10 views

Clean, safe way to auto restart (and monitor) daemons/services

At the moment I am using init.d-scripts for starting services like TeamSpeak or MineCraft. Sometimes a server application stops because of some failure or it is auto-stopped, because of some plugin. ...
1
vote
1answer
17 views

Run daemons before logging-in

I have some daemons to run once boot is finished, the main one is a Wifi AP. My question is: how to ensure the daemon run even if I'm not logged-in ? EDIT init.d: in spite of gøøg1ing about, I dont ...
0
votes
0answers
18 views

Service not stopping properly on shutdown

I used the script here to create a service to start and stop a Minecraft server on boot and shutdown. The script basically starts the server jar file in a GNU screen (it also does backups and updates ...
0
votes
1answer
49 views

start-stop-daemon not removing old pid file

I have an init script that I've written to start and stop an application as a service. Code is here: #! /bin/bash PID_FILE=/var/run/myservice.pid case "$1" in start) echo "Starting up ...
0
votes
0answers
29 views

Why start-stop-demon doesn't signal property that daemon has started/stopped

Here's a part of the daemon script for BtSync at /etc/init.d/btsync: do_start() { start-stop-daemon --start --verbose --oknodo --background --user $CHUID --user $CHUID --pidfile $PIDFILE --exec ...
1
vote
2answers
32 views

Ubuntu 12.04 and SSH: Automatically shutting down another computer when powering off

I want to shut down another computer in my network when shutting down my own. For that I have created a script that logs into that machine through ssh and powers it off. (SSH keys are set up, so no ...
0
votes
0answers
44 views

systemd not invoking init.d script upon reboot

I have a server running Ubuntu 15.04 with few VMs One of the VMs needs USB console from a device connected to host, so I created simple script which adds/removes USB console to/from VM when USB is ...
0
votes
1answer
25 views

bind9 starting with boot

How to add bind9 to start with Ubuntu boot? I search a lot and didn't find anything useful. Maybe something related to init.d, right?
1
vote
1answer
34 views

rc.local is not restored after initscripts reinstall

I was having a hard time trying to make rc.local run on startup, which i still haven't achieved, and would appreciate any help with that. The main problem right now is that I decided to follow this ...
2
votes
0answers
66 views

Different results of 'ps aux | grep x' if entered manually and done via script

It was probably a bad method, but I was running ps aux | grep x | wc -l as part of the if statement in a script. When I ran this from the command line as a regular user, the result would be 1 if the ...
0
votes
1answer
36 views

Run the script with screen

I write a script to run p2pool. I can not understand how to add a run through the "screen -dmS"? #! /bin/sh ### BEGIN INIT INFO # Provides: p2pool start # Required-Start: ...
0
votes
0answers
49 views

live555ProxyServer as daemon service

I would like to make live555ProxyServer as a daemon service which would start each time my pc reboots. How do I properly implement start and stop in init.d script file? This is what I have right now ...
0
votes
1answer
140 views

Ubuntu openvpn daemon

I've installed openvpn client in to my ubuntu I've downloaded my cerfification files and I was also able to set up client config file. When I start open vpn from terminal like so openvpn --config ...
0
votes
0answers
43 views

Cannot find log of application started through init.d script

I have created a .deb package of my scala application using sbt. I have successfully installed the application and am able to run it properly. Now, I want to start my application on system startup. ...
2
votes
2answers
85 views

Why does my init.d script show up under --status-all, but I can't otherwise control it?

I get the following (truncated) output from --status-all $ service --status-all [..] [ - ] ossec [ - ] ossec-hids-authd [..] But I can't access it through service: $ service status ...
1
vote
1answer
410 views

Problems updating plexmediaserver on Ubuntu 15.04

I followed the guidelines in this post - @ - but it seems that this has brought about a new problem, I can no longer update plex due to the error "E: The package plexmediaserver needs to be ...
2
votes
2answers
2k views

“A start job is running for /etc/rc.local Compatibility”: how to fix?

I just upgraded to Ubuntu Vivid (15.04) today, and after the restart I experienced a very long boot process. My laptop usually boots in 5 seconds or less, and now it hadn't finished even after a few ...
-1
votes
2answers
57 views

script wont execute after boot raspberrian os [closed]

I have created the following script: myserver.sh /home/pi/Downloads/ngrok http -subdomain=anewdomain 80 which i have place inside init.d folder. My problem is that it will not be executed after ...
0
votes
1answer
165 views

How do I create a script to restart a service every two hours? [duplicate]

I want to make a simple init.d file that makes it possible for me to reset a trial service that I'm using. I am currently using CodeSys and the startup script cuts me off after 2 hours, so I need to ...
0
votes
1answer
78 views

Accidentally deleted my /etc/init.d folder from system

I know this is really bad, but I have accidentally deleted the init.d folder from my system. I am using VMWare player to load Ubuntu 14.04 LTS. Now my system is not starting properly. I don't have CD ...
1
vote
1answer
38 views

init.d script + upstart help/advice

I have written up a Shell init.d script named "My_first_initd_script". The script works great when I run it from the /etc/init.d/ -working in the foreground. I would like to ...
7
votes
2answers
4k views

Problems starting plexmediaserver on Kubuntu 15.04

I have recently installed plexmediaserver 64-bit from the plex site on my Kubuntu 15.04 laptop and am unable to start. I believe it is in the change from how init scripts work? If you look at the ...
1
vote
1answer
197 views

Init file in init.d calls using sudo in script.sh give error sudo: no tty present and no askpass program specified

I an trying to make a script that launches on boot to connect to my personal VPN. I have an init file: /etc/init.d/vpnstartup which calls my vpnon.sh script on boot with the commands: case "$1" in ...
0
votes
1answer
44 views

Init.d code not quite working

The filtered out data from a MQTT live stream is dumped into a csv file named mqtt.csv and the dumping process is done by executor_start_up_job.txt which is written in BASH (has a shebang). I want to ...
1
vote
1answer
120 views

How does the Ubuntu boot process work?

I have read many articles about the Linux boot process. As I understand the Linux boot process is something like this : BIOS (UEFI) → MBR → grub → Kernel → init What I really don't understand ...
0
votes
1answer
33 views

PHP & Init script

I've written a php job handler for mediawiki. The script will spawn 4 PHP processes (Scanner, and three workers). youri@pewpew:~$ ps -aux | grep php www-data 1579 0.5 0.2 263888 12752 ? SN ...
0
votes
0answers
84 views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
2
votes
0answers
19 views

Deluged Upstart not starting [duplicate]

Setting up a new ubuntu server installation (14.04.1), I have been completely unable to get deluge to start as a daemon at system startup. Originally tried following this set of instructions: ...
1
vote
2answers
78 views

Which package provides the Postgresql init scipt?

If I haven't got /etc/init.d/postgresql file in what package could I find it?
0
votes
1answer
325 views

What could cause “Waiting for network configuration” + 2 minutes unskippable hanging at boot when no network interfaces are configured?

After installation of a bunch of unknown programs (the program causing the problem must have been in the long list of dependencies, /var/log/dpkg.log contains > 38000 entries for the relevant dates) ...
2
votes
1answer
2k views

Problem with NIS configuration

I tried to configure NIS in a server and a client both running Ubuntu 14.04 following this guide and this official guide. After a reboot the client machine got locked with this message several times ...
1
vote
1answer
80 views

Start script on boot up?

I want to run a script when the system starts. The script is: #!/bin/bash gnome-terminal --tab -t "MyPC" -e "sh -c 'nohup firefox & nohup gedit & bash'" --tab -t "MYPC2" -e "sh -c 'ls -al;ls; ...
1
vote
0answers
537 views

Running service spacenavd start not same as /etc/init.d/spacenavd start

I have an application which makes use of a 3dconnexion space mouse. It works fine when using the spacenavd daemon however I'm having issues getting the daemon to run at boot or as a service. $ sudo ...
0
votes
0answers
33 views

gmote server as a daemon service

I need some help to set G mote Server as a daemon so that it can start at the boot of my system. I'm using lubuntu latest version. I alreay tried to write a script into /etc/init.d using skeleton as a ...
0
votes
0answers
50 views

Pure-FTPd with virtual users

I recently setup a pure-ftpd server, and I'm wondering about how I would include virtual users within the service. I would normally have to run the program with -l puredb:/etc/pureftpd.pdb. How would ...
3
votes
3answers
1k views

How to start a VM on boot, and shutdown on VM stop?

Long story short... I had to install a small server app running in a VM on one of this company's PC. Both computers are running Windows XP (with legacy softwares, so upgrading is not possible), and ...
2
votes
1answer
422 views

How to create a directory in /var/run on startup?

I need to create a non-root owned directory in /var/run that a startup script in /etc/init.d will use. What is the proper way achieve this? I'm using Ubuntu 14.04.
0
votes
0answers
18 views

Dual booting thwarted by rogue keyboard presses?

End goal: successfully dual boot Windows 8.1 and Ubuntu 14.04, both are already installed and working. I just can't get to the bootloader (I think it's called) to choose to go back to my Windows ...
2
votes
1answer
1k views

How to get rid of cloud-init?

I'm using Ubuntu 14.04 image as my base box for vagrant. Unfortunately this base box contains cloud-init which causes many problems during starting-up the machine: ...
0
votes
1answer
203 views

dnsmasq starting before eth0 is ready and therefore not binding

I have setup dnsmasq on ubuntu 14.04. The dnsmasq part works fine. However on boot, dnsmasq runs BEFORE eth0 is up. This causes dnsmasq to not respond to queries on eth0. In syslog I can see dnsmasq ...
3
votes
2answers
612 views

Ubuntu equivalent of CentOS success / failure

A lot of services in CentOS look like this (except green and red, respectively): $ sudo service blah start Starting blah: [ OK ] $ sudo service notrunning stop Stopping notrunning: ...
1
vote
2answers
685 views

init.d scripts and rc folders

I am wondering why not all scripts placed in init.d folder are in rc folders eg. system cups is in init.d but there is not in rc folders? I don’t know if I understand it right. When I want to ...
1
vote
1answer
3k views

Deluge start-up script works but won't start daemon on startup

I've gone through the instructions here to configure Deluge, and I've also gone through these instructions to set up the necessary scripts. The username I chose for DELUGED_USER was the user name I ...
0
votes
0answers
70 views

Sickbeard start service on boot not working: Permissions issue? [duplicate]

I've just installed Sick-Beard on my server. Starting the service via SSH works just fine, as I issue the command sudo service sickbeard start However, I can't get the service to start on boot. ...
2
votes
1answer
1k views

probleme with gdm

I have a problem with gdm , when I run this command sudo /etc/init.d/gdm start I got this message /etc/init.d/gdm: 79: /etc/init.d/gdm: syntax error: "fi" unexpected (expecting "}") So, can ...
0
votes
1answer
3k views

init.d script doesn't log to /var/log/boot.log

The script below is working fine at system startup. However, its log messages don't show in /var/log/boot.log, when the system boots. I compared it with other init.d scripts and couldn't reach any ...
1
vote
2answers
2k views

upstart multiple parameters

So Im working on a upstart process and wanted to know if I could pass in multiple parameters my-upstart-service restart PARM1=foo PARM2=bar PARM3=hello Here is kinda what I had in mind description ...
0
votes
1answer
84 views

Why a service in init.d and not in rc*.d started?

I have a configured and working service script myservice in the /etc/init.d and in /etc/rc*.d directories of an Ubuntu 13.10 distribution. Removing the links in /etc/rc*.d using update-rc.d -f ...
1
vote
2answers
1k views

Which init daemon starts cups?

I have a fresh installation of Ubuntu 14.04, and have not touched anything. Cups is running, as reported by both ps and netstat. There are /etc/init/cups.conf and /etc/init.d/cups, both of them seem ...
0
votes
1answer
142 views

How do I restart vsftpd?

I am using Lubuntu. I have installed vsftpd using sudo apt-get install vsftpd That ran all ok. However when I try to retstart the service with the following it cannot find it: sudo ...