daemon --fork --user w rc-scripts

Paweł Gołaszewski blues at pld-linux.org
Mon Feb 13 23:11:33 CET 2012


On Mon, 13 Feb 2012, Kacper Kornet wrote:
> > > > > Jest jakiś głębszy powód dlaczego w daemon w rc-scripts opcje 
> > > > > --user i --fork wzajemnie się wykluczają?
> > > > Po zmianach w tym kierunku przestał działać lighttpd z włączonym 
> > > > LIGHT_ANGEL="yes"
> > > Możesz podać jakoś więcej szczegółów, jakiś test case? Bo właśnie:
> > > 1) Zainstalowałem lighttpd-1.4.30-7.i686
> > > 2) Odkomentowałem LIGHT_ANGEL="yes" w /etc/sysconfig/lighttpd
> > > 3) service lighttpd start
> 
> > > I wydaje się działać.
> > Fajnie, ale:
> > # /etc/init.d/lighttpd status
> > lighttpd-angel jest zatrzymany
> > daemon lighttpd dead but subsys (lighttpd) locked
> Dziwne, u mnie działa:
> 
> # /etc/init.d/lighttpd start
> Starting Lighttpd Web Server service............................................[ DONE ]
> 
> # /etc/init.d/lighttpd status
> lighttpd-angel (pid 13270) is running...
> lighttpd (pid 13271) is running...
> 
> Dla jasności, że mówimy o tym samym:
> 
> # rpm -q rc-scripts
> rc-scripts-0.4.5.2-6.i686

tak.

> # rpm -V rc-scripts
> .M......  c /etc/rc.d/rc.local
> S.5....T    /lib/rc-scripts/functions

# rpm -V rc-scripts
#

> # grep Id /lib/rc-scripts/functions
> $Id: functions 12447 2011-12-12 10:38:51Z glen $

# grep Id /lib/rc-scripts/functions
# $Id: functions 12447 2011-12-12 10:38:51Z glen $

tak, mówimy o tym samym, niestety...
 
> > Z palca to "lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf" chodzi 
> > normalnie, więc to nie jest problem startowania czy działania, a samej 
> > funkcji...
> Jak możesz to dodaj echo $prog w lini 632 w /etc/init.d/functions i 
> zobacz co on próbuje wykonać przed i po feralnej zmianie.

Sprawa się wyjaśniła, ale przy okazji wyszło, że trochę za dużo idzie do 
/dev/null

[...]
+ /sbin/start-stop-daemon -q --start --nicelevel -7 --pidfile /var/run/lighttpd-angel.pid --make-pidfile --chdir / --background --exec /usr/bin/env -- SHELL=/bin/sh lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf
/sbin/start-stop-daemon: Unable to alter nice level by -7: Operation not permitted
[...]

1. Ten komunikat nie powinien iść do śmieci. Czy jest coś co 
   /sbin/start-stop-daemon wyrzuca i co powinniśmy wywalać?
2. Dlaczego akurat teraz zaczęło to tak działać?? Od zawsze miałem w 
   konfiguracji vservera ustawione nice na cały vserver 
   (/etc/vservers/<server>/nice), ale teraz zaczęło to inaczej działać. Do 
   tej pory nice w vserverze był względny, a teraz wygląda na to, że nie 
   jest. Kernel był zmieniany kilka tygodni temu...


-- 
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.


More information about the pld-devel-pl mailing list