/etc/init.d

stan stanb at panix.com
Sat Jan 8 15:47:40 UTC 2011


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 at 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 at lists.ubuntu.com
> 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?




More information about the ubuntu-users mailing list