[NBLUG/talk] executables to run at boot

Sean seanvanco at gmail.com
Tue Jul 25 17:20:13 PDT 2006


Thanks for the reminder. I used rc-update the other week, now that you
mention it.

On 7/25/06, Tim C. Lewis <tclewis at oreilly.com> wrote:
>
> /etc/init.d/whatever should be a script calling #!/sbin/runscript.
> the actual binary (if compiled) program should be in some normal system
> location like /usr/sbin/.  you can add the "whatever" service to default
> or boot runlevels with rc-update:
> rc-update show;
> rc-update add whatever default;
>
> for /etc/init.d/ file format, any of the ones in there already can serve
> as an example.  if you have xinetd installed, its runscript script is
> pretty simple on gentoo.  vixie-cron is another simple one.
>
> -tcl.
>
>
> On Tue, 25 Jul 2006, Sean wrote:
>
> > I am still somewhat new to Gentoo, and I have come accross a situation
> > where I must install software that was originally inteded for another
> > version (i.e. RedHat w/ kernel 2.4). I believe I have found what I
> > need to do, but I need to double-ckeck my research.
> >
> > In order to have a program run at boot, I place the binary file in
> > /etc/init.d, and then a symbolic link from /etc/runlevels/boot (or
> > default) pointing to the binary file.
> >
> > Is this the proper way to handle it? My need to do this came from
> > ./INSTALL attempting to configure the rc.d folders and permissions, so
> > I need to set it up manually.
> >
> > Also, I am getting the errors "cannot execute binary file" and "...has
> > syntax errors in it; not executing". Is that due to the fact that the
> > file was compiled for another system? I read that it is possible to
> > cross-compile, and I wanted to get you opinion.
> >
> > Thank you for your assistance.
> >
> >
> > Sean
> >
> > _______________________________________________
> > talk mailing list
> > talk at nblug.org
> > http://nblug.org/cgi-bin/mailman/listinfo/talk
> >
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk
>



More information about the talk mailing list