[00:31] <ShaunR> upstart isnt starting networking on boot, how can i tell it to?
[00:31] <ShaunR> ls
[18:21] <quitte> hi. it's been about 6 months since i last looked into upstart. is it now in a state where it can replace sysvinit without sysvinit compatibility?
[20:21] <JanC> quitte: considering that "sysvinit compatibility" is implemented using normal upstart config files, I suppose it has been able to replace sysvinit for years  ;-)
[20:30] <quitte> there's something about the early root i can't quite figure out: do i really have to run init after mounting the rootfs? or could I put upstart and udev in a initramfs without having to restart them after switch_root or pivot_root?
[20:32] <quitte> more than one third of the boot on my system is spent before bootchartd is started, so i'd assume that quite some imrovement can be made in the early root
[20:49] <khiraly1> hi
[20:50] <khiraly1> I would like to exectue the following command from a cron job: service network-manager restart
[20:50] <khiraly1> it does not work
[20:50] <khiraly1> any idea?
[20:50] <khiraly1> if I run the script manually it seems to work
[20:51] <JanC> quitte: Ubuntu uses upstart in initramfs
[20:52] <JanC> khiraly1: what has cron to do with upstart?  ☺
[20:54] <khiraly1> JanC: if there is no network I would like to restart network-manager
[20:54] <khiraly1> I used to use /etc/init.d/NetwrokManager restart, but ubuntu converted to upstart
[20:54] <khiraly1> and it does not work from cron script
[20:55] <khiraly1> it does work if I run it manually, but from cron job it does not work. (I echo "something" > /home/user/ehh.txt, and it does work)
[20:55] <khiraly1> just the service line does not have any effect
[20:55] <khiraly1> service network-manager restart
[20:56] <JanC> maybe there is an issue with permissions or some environment variable missing or such?
[21:01] <khiraly1> permission I doubt it, I run it as root
[21:01] <khiraly1> environment variable?
[21:01] <khiraly1> maybe
[21:01] <khiraly1> how to check?
[21:02] <khiraly1> this is the script:
[21:02] <khiraly1> http://pastebin.com/m7b41b44d
[21:03] <khiraly1> this is the /etc/cron.d/testping:
[21:03] <khiraly1> 0 */1 * * *     root    /home/lama/testping.sh
[21:03] <khiraly1> JanC: could you verify if it is working for you?
[21:11] <ion> janc: Ubuntu doesn’t use Upstart in initramfs.
[21:16] <JanC> ion: it doesn't ?
[21:18] <ion> The init in Ubuntu’s initramfs is an sh script.
[21:20] <JanC> hm
[21:22] <JanC> khiraly1: eh, you should probably use "restart network-manager" instead of "service network-manager restart"
[21:22] <JanC> that's /sbin/restart
[22:01] <khiraly1> JanC: thanks for the tip, it seems to work
[22:35] <quitte> good thing i just looked, so i didn't have to take apart ubuntus initramfs
[22:41] <ion> quitte: http://people.canonical.com/~scott/daily-bootcharts/ btw
[22:52] <JanC> ion: IIRC there is a way to use upstart in an initramfs though, or am I completely wrong now?
[22:53] <ion> Dunno whether anyone’s done that. I probably wouldn’t until there’s a way to transfer state to a new init, or tell the running init to switch to a new root.
[23:00] <JanC> well, can the current script transfer "state"?
[23:05] <ion> Not really. There’s a horrible hack that attempts to do something similar until we have a proper solution (probably involving running Upstart as init in initramfs).