[00:31] upstart isnt starting networking on boot, how can i tell it to? [00:31] ls === pocek_ is now known as pocek === ion__ is now known as ion [18:21] 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] 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] 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] 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] hi [20:50] I would like to exectue the following command from a cron job: service network-manager restart [20:50] it does not work [20:50] any idea? [20:50] if I run the script manually it seems to work [20:51] quitte: Ubuntu uses upstart in initramfs [20:52] khiraly1: what has cron to do with upstart? ☺ [20:54] JanC: if there is no network I would like to restart network-manager [20:54] I used to use /etc/init.d/NetwrokManager restart, but ubuntu converted to upstart [20:54] and it does not work from cron script [20:55] 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] just the service line does not have any effect [20:55] service network-manager restart [20:56] maybe there is an issue with permissions or some environment variable missing or such? [21:01] permission I doubt it, I run it as root [21:01] environment variable? [21:01] maybe [21:01] how to check? [21:02] this is the script: [21:02] http://pastebin.com/m7b41b44d [21:03] this is the /etc/cron.d/testping: [21:03] 0 */1 * * * root /home/lama/testping.sh [21:03] JanC: could you verify if it is working for you? [21:11] janc: Ubuntu doesn’t use Upstart in initramfs. [21:16] ion: it doesn't ? [21:18] The init in Ubuntu’s initramfs is an sh script. [21:20] hm [21:22] khiraly1: eh, you should probably use "restart network-manager" instead of "service network-manager restart" [21:22] that's /sbin/restart [22:01] JanC: thanks for the tip, it seems to work [22:35] good thing i just looked, so i didn't have to take apart ubuntus initramfs [22:41] quitte: http://people.canonical.com/~scott/daily-bootcharts/ btw [22:52] ion: IIRC there is a way to use upstart in an initramfs though, or am I completely wrong now? [22:53] 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] well, can the current script transfer "state"? [23:05] 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).