On 03/11/2012 09:25 PM, Bruce Dubbs wrote:
> Armin K. wrote:
>> On 03/11/2012 08:34 PM, Bruce Dubbs wrote:
>
>> Startup finished in 1s 655ms 874us (kernel) + 19s 811ms 430us
>> (userspace) = 21s 467ms 304us.
>>
>> On Pentium 4 2.8GHz and 1024MB of RAM with lots of services.
>>
>> acpid, avahi, cronie, rsyslog, udev, dbus, network-manager, ntp, cups,
>> ssh and lightdm.
>
> Right.  The startup takes longer for systemd.
>

Wrong. On my machine with same services and their initscripts it takes 
about 40 seconds. This is the time from Grub to Gnome Fallback since 
lightdm auto logins to it.

>> It's not just /sbin/init ... Systemd can do lot more ... It has
>> integrated syslog, journal, login daemon, it can handle encrypted
>> volumes, start services "on demand" (one of my favourite features since
>> I am on poor hw) and such. Also, my most favourite feature is about it's
>> unit simplicity, you don't have to know scripting to make an initscript
>> to work (I suck at scripting).
>
> A startup script is dead simple.  From the template:
>
> . /lib/lsb/init-functions
>
> case "${1}" in
>      start)
>         log_info_msg "Starting..."
>         start_daemon fully_qualified_path
>         ;;
>
>      stop)
>         log_info_msg "Stopping..."
>         killproc fully_qualified_path
>         ;;
>
>      restart)
>         ${0} stop
>         sleep 1
>         ${0} start
>         ;;
>
>      *)
>         echo "Usage: ${0} {start|stop|restart}"
>         exit 1
>         ;;
> esac
>
> exit 0
>
> Even a novice should be able to understand that.
>
>
>     -- Bruce
>

Not every init script is just made of that stuff. And still, no 
on-demand activation.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to