Linked Questions

13 votes
1 answer
15k views

service vs. initctl [duplicate]

Why are some deamons run out of service and some out of initctl? Do both tools do the same thing and it is just a matter of personal preference of the user what they will use? E.g. sudo service --...
amphibient's user avatar
  • 1,257
1 vote
1 answer
14k views

What is the difference between jobs and services? [duplicate]

Possible Duplicate: What's the difference between “Service” and “/etc/init.d/”? So what are the differences between jobs that are located in /etc/init/, which I call ...
Industrial's user avatar
  • 1,698
0 votes
0 answers
56 views

Diffrence between /etc/init.d/ssh start and service ssh start [duplicate]

Please clear my doubt Diffrence between /etc/init.d/ssh start and service ssh start. which is the best to use service command or /etc/init.d/.
khanthegeek's user avatar
938 votes
9 answers
1.5m views

How to enable or disable services?

I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is update-rc.d to add new services to startup, ...
NES's user avatar
  • 33.2k
0 votes
2 answers
8k views

command not running in rc.local but works in terminal

My entire rc.local file #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error....
John Curry's user avatar
3 votes
4 answers
9k views

Mysql didn't startup after rebooting

After I rebooted my server, everything started up normally except for "mysql", i tried to start it up manually "/etc/init.d/mysql restart" or with "service mysql restart", it fails In log file it ...
MohammedSimba's user avatar
2 votes
1 answer
3k views

Running PHP-CLI server

I recently got interested in the WebSocket technology. I built myself a server using PHP which I ran on Windows using the PHP CLI. That was fine for development, but now I need to think about ...
Xeon06's user avatar
  • 125
3 votes
0 answers
2k views

Unable to connect to X11 display. is $DISPLAY set? - Yes, it is

I'm trying to run this in my /etc/init.d/rc.local. I had to manually add the exit 0 because it wasn't there by default if that makes any difference. cd /home/john/xcape && ./xcape -e '...
John Curry's user avatar
0 votes
1 answer
1k views

Where does Gunicorn come from in `service gunicorn restart`?

When I pip freeze, I do not see Gunicorn. I am wondering where Gunicorn comes from when I run service gunicorn restart/stop. And what is service's relationship with Upstart? Thanks. Edit: I now ...
Jonas's user avatar
  • 101
0 votes
1 answer
146 views

Two different ways of starting a service. Why?

What are the differences between the two following ways or starting something, first being: /etc/init.d/redis-server start And second: /usr/bin/redis-server I've never really fully understood why ...
Karl Morrison's user avatar