Have a service start on startup with Ubuntu
Posted
by Joseph Silvashy
on Server Fault
See other posts from Server Fault
or by Joseph Silvashy
Published on 2010-03-21T21:45:35Z
Indexed on
2010/03/21
21:51 UTC
Read the original article
Hit count: 502
I'm not clear on how to start a service when the server boots, I read on some of the other questions asked about adding the script to /etc/init.d
, but It's just one line that I need to execute in the commandline:
sudo /etc/init.d/avahi-daemon restart
But I have a few issues with this, firstly, I apparently need to use sudo, and it gives me the following:
ngl-server-01:~% sudo /etc/init.d/avahi-daemon start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service avahi-daemon start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start avahi-daemon
But when I try just avahi-daemon start
I get:
Too many arguments
Why is this? and how would you start this service?
© Server Fault or respective owner