1 |
On Monday 29 October 2007, Natanael Copa wrote: |
2 |
> On Sun, 2007-10-28 at 19:43 -0400, Mike Frysinger wrote: |
3 |
> > On Saturday 27 October 2007, Marc Blumentritt wrote: |
4 |
> > > is someone working on Gentoo init scripts for busybox tools like |
5 |
> > > syslogd, hdparm, etc? |
6 |
> > |
7 |
> > the only thing that could be changed is having init.d scripts be written |
8 |
> > in POSIX shell rather than bash. but this has already been done, so i |
9 |
> > dont see what else there is to do. |
10 |
> |
11 |
> busybox could provide a virtual/logger so you don't need to use metalog, |
12 |
> sdsc-syslog, socklog, sysklogd, syslog-ng or syslogread. |
13 |
> |
14 |
> Same goes with other busybox tools. hdparm is mentioned, but htere is |
15 |
> also a web server etc. |
16 |
> |
17 |
> Problem is just that there are no init.d scripts in busybox for those. |
18 |
|
19 |
sorry, i see what you mean now ... i thought Marc was proposing rewriting |
20 |
existing POSIX init.d scripts to work in busybox's shell and the answer there |
21 |
is "no" |
22 |
|
23 |
> > > I would be willing to help creating these. Perhaps |
24 |
> > > they could be included in busybox package and installed as an option? |
25 |
> > |
26 |
> > no |
27 |
> |
28 |
> just an idea... There could be an additional busybox-initd package with |
29 |
> those scripts. The ebuild could have busybox as dependency and if for |
30 |
> example USE=syslog, it would install check the busybox config if syslog |
31 |
> is enabled and it would provide a virtual/logger. |
32 |
|
33 |
i think the best from a support stand point would be to have a busybox-initd |
34 |
package that'd parse the busybox config file to see what is enabled, and then |
35 |
copy the relevant init.d scripts from the portage tree. creating independent |
36 |
scripts is just a maintenance nightmare. |
37 |
|
38 |
so if busybox supports hdparm, it'd do: |
39 |
newinitd ${PORTDIR}/sys-apps/hdparm/files/hdparm-init-8 hdparm |
40 |
newconfd ${PORTDIR}/sys-apps/hdparm/files/hdparm-conf.d.3 hdparm |
41 |
-mike |