> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Zhang, Austin > Sent: Wednesday, January 26, 2011 6:12 PM > To: [email protected]; [email protected] > Subject: Re: [meego-packaging] [meego-commits] 12834: Changes to > Trunk:Testing/fastinit > > Is it necessary to place those daemons to background with "&"? Or upstart will > do it as default and also 'smartly' detect the launching orders? > We are still with sysvinit.
For timed and dsme, it's required by developer Peter > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Peter Zhu > Sent: Wednesday, January 26, 2011 6:02 PM > To: [email protected] > Subject: [meego-commits] 12834: Changes to Trunk:Testing/fastinit > > Hi, > I have made the following changes to fastinit in project Trunk:Testing. Please > review and accept ASAP. > > Thank You, > Peter Zhu > > [This message was auto-generated] > > --- > > Request #12834: > > submit: home:peter:branches:Trunk:Testing/fastinit(r5)(cleanup) -> > Trunk:Testing/fastinit > > > Message: > Launch some daemons in rc.sysinit to fix BMC#12898, add timed and > some fix for mce > > State: new 2011-01-26T02:01:42 peter > Comment: None > > > > changes files: > -------------- > --- fastinit.changes > +++ fastinit.changes > @@ -0,0 +1,3 @@ > +* Wed Jan 26 2011 Peter J Zhu <[email protected]> - 1.27 > +- Add daemons of mce/dsme/sensord/ohmd to rc.sysinit, part of fix for > BMC#12898 > + > > new: > ---- > add-daemon.patch > > spec files: > ----------- > --- fastinit.spec > +++ fastinit.spec > @@ -5,6 +5,7 @@ > Group: System/Base > Release: 1 > Source: %{name}-%{version}.tar.bz2 > +Patch0: add-daemon.patch > BuildRoot: /%{_tmppath}/%{name}-%{version}-%{release}-root > Requires: mingetty, /bin/awk, /bin/sed, /bin/mktemp, e2fsprogs >= 1.15 > Requires: /sbin/sysctl, syslog > @@ -32,6 +33,7 @@ > > %prep > %setup -q > +%patch0 -p1 > > %build > make -C src > > other changes: > -------------- > > ++++++ add-daemon.patch (new) > --- add-daemon.patch > +++ add-daemon.patch > +diff -urN fastinit-1.27/rc.d/rc.sysinit fastinit-1.27-new/rc.d/rc.sysinit > +--- fastinit-1.27/rc.d/rc.sysinit 2010-12-07 02:58:09.000000000 +0800 > ++++ fastinit-1.27-new/rc.d/rc.sysinit 2011-01-27 01:33:59.708811492 > +0800 > +@@ -335,6 +335,54 @@ > + if [ -x "/sbin/console_init" ] ; then > + /sbin/console_init /dev/tty0 > + fi > ++ > ++ if [ -x "/usr/sbin/ohmd" ] ; then > ++ /usr/sbin/ohmd > ++ fi > ++ > ++ if [ -x "/usr/sbin/sensord" ] ; then > ++ /usr/sbin/sensord > ++ fi > ++ > ++ if [ -x "/sbin/mce" ] ; then > ++ test -d /var/run/mce || (rm -f /var/run/mce; mkdir /var/run/mce) > ++ /sbin/mce --force-syslog > ++ fi > ++ > ++ if [ -x "/usr/bin/timed" ] ; then > ++ /usr/bin/timed & > ++ fi > ++ > ++ if [ -x "/usr/sbin/dsme" ] ; then > ++ # Get boot state > ++ GETBOOTSTATE=/sbin/getbootstate > ++ if [ -x $GETBOOTSTATE ]; then > ++ export BOOTSTATE=`getbootstate 2>/dev/null` > ++ else > ++ # A reasonable default to prevent reboot/shutdown > ++ export BOOTSTATE="USER" > ++ fi > ++ > ++ touch /tmp/$BOOTSTATE > ++ echo $BOOTSTATE > /tmp/STATE > ++ > ++ if [ -x /etc/resource_limits.conf ]; then > ++ source /etc/resource_limits.conf > ++ fi > ++ > ++ # Get R&D flags > ++ CALTOOL=/usr/bin/cal-tool > ++ RDMODE_CONF_FILE=/etc/dsme/rdmode > ++ if [ -x $CALTOOL ]; then > ++ $CALTOOL --get-rd-mode | grep -q enabled \ > ++ && export DSME_RD_FLAGS=`$CALTOOL --get-rd-flags` > ++ elif [ -f $RDMODE_CONF_FILE ]; then > ++ export DSME_RD_FLAGS=`cat $RDMODE_CONF_FILE` > ++ fi > ++ > ++ echo -n "Starting DSME in state '$BOOTSTATE': " > ++ /usr/sbin/dsme -p /usr/lib/dsme/libstartup.so &> > /dev/null > ++ fi > + > + # enable SATA ALPM at the end of the disk sensitive part of the boot > process > + sleep 5 > > _______________________________________________ > MeeGo-commits mailing list > [email protected] > http://lists.meego.com/listinfo/meego-commits > _______________________________________________ > MeeGo-packaging mailing list > [email protected] > http://lists.meego.com/listinfo/meego-packaging _______________________________________________ MeeGo-packaging mailing list [email protected] http://lists.meego.com/listinfo/meego-packaging
