Re: /etc/init.d



On Thu, Jan 06, 2011 at 03:11:27PM -0600, C de-Avillez wrote:
On 01/06/2011 06:57 AM, stan wrote:
A quick question. On 10.04, if I add a package that is _not_ from the
Ubuntu respoitries, can I just put it's startup script in /etc/init.d, and
expect thisngs to get started up on system boot? Or is there more I need to
do/

For instance, what control what runleves it is satrted and stoped at?



You can put the init script under /etc/init.d/ (or convert it to
upstart ;-).

Then use update-rc.d to set the run levels you want it to
automagically start. Usually the defaults are appropriate:

sudo update-rc.d <scriptName> defaults


Thanks for all the replies on this. It looked like this would be easy, but
....

Perhaps I need to provide more details. I installed the xrdp package, using
apt-get. It appeared to be the package that provided the fucntionality I
needed, but it proved to be very fragile, and unstable. I sent email to the
support list for xrdp, where it was sugested that I try the git ersion, ass
it is more stbale. Did an apt-get removee xrdp, downloaded, complied, and
did a make install on the new cersion, started it by hand, and it does seem
to be stable, so now I need t install int on the machine. Manualy put the
startup script in /etc/init.d, looked at the replies to this post, and did
the following:

root@pm2v40:/etc/init.d# update-rc.d xrdp defaults
update-rc.d: warning: /etc/init.d/xrdp missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/xrdp already exist.

Now I understnad the LSB part, but this implies that the links that were
installed for the Ubuntu xrdp package did not get removed, when I di the
uninstall. Is this correct? If so, why not?


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: /etc/init.d
    ... so now I need t install int on the machine. ... startup script in /etc/init.d, looked at the replies to this post, and did ... installed for the Ubuntu xrdp package did not get removed, ...
    (Ubuntu)
  • >>>> INSTALL UBUNTU <<<<
    ... Ubuntu No Install Screen Boot Scripts ... After Install Ubuntu Server Constantly Reboots ... Which Ubuntu Linux Kernal To Install ...
    (rec.music.progressive)
  • The Big Ol Ubuntu Security Resource
    ... but its default install has flaws. ... are the mods you need to make to protect your system. ... If you've recently switched from Windows to the Linux distribution Ubuntu, ... IT Security has prepared a guide to help you ...
    (microsoft.public.windowsxp.general)
  • The Big Ol Ubuntu Security Resource
    ... but its default install has flaws. ... are the mods you need to make to protect your system. ... If you've recently switched from Windows to the Linux distribution Ubuntu, ... IT Security has prepared a guide to help you ...
    (microsoft.public.windowsxp.general)
  • Re: ubuntu-users Digest, Vol 39, Issue 146 LAMP instead XAMP worked OK
    ... Re: LAMP ... find for how to set up a printer in Ubuntu is in version 7.4. ... How did you install LAMP? ... LAMP server software. ...
    (Ubuntu)