[04:38] <twb> In lucid, upstart provides halt(8).  It's manpage indicates that it only accepts -fpw --verbose, but /etc/init.d/halt passes it (at least) -d as well.
[04:39] <twb> Is the manpage incomplete?  I would expect it to mention if additional options were accepted and ignored for reasons of backwards compatibility.
[05:12] <twb> For now I have just instrumented it as if it was Debian's reboot/halt/poweroff:
[05:12] <twb> chroot /srv/lxc/template-minbase tee >/dev/null /sbin/reboot <<<$'#!/bin/bash\nwhile getopts nwdfiph opt; do [[ f = $opt ]] && exec kill -SEGV 1; done; exec "$0.distrib" "$@"'
[08:16] <soren> twb: -d, -i, and -h are all ignored.
[08:16] <twb> Thanks.
[08:17] <soren> twb: Sure.
[16:13] <jetienne> q. in a upstart script, [ "$HOSTNAME" == "jmebox" ] && export HOME="/home/jerome" || export HOME="/home/jetienne" <- this doesnt work... BUT does work in a interactive shell how come ?
[16:14] <jetienne> script = ? bash ?
[16:15] <ion> HOSTNAME is probably not defined in the environment, as set -u and perhaps set -x and logging the output should tell you.
[16:15] <jetienne> ?
[16:15] <ion> keybuk: How about set -u by default in Upstart scripts? :-)
[16:16] <jetienne> ah ok 
[16:16] <jetienne> ion: understood thanks
[16:16] <Keybuk> ion: I think I answered that one once already
[16:16] <Keybuk> it makes programming shell in Upstart more surprising than it should be
[16:16] <Keybuk> and makes it pretty hard to actually do common shell-y things
[16:16] <ion> ok
[16:31] <jetienne> sudo initctl restart mystuff <- this doesnt work ?
[16:31] <jetienne> the man page seems to say ok, but in practice i got an error 
[16:31] <jetienne> sudo initctl restart lshow_http_proxy
[16:31] <jetienne> initctl: Unknown instance: 
[16:31] <jetienne> but this works with start/stop/status
[16:32] <jetienne> so it cant be really unknown 
[16:35] <Keybuk> is it running?
[16:35] <Keybuk> ie.
[16:35] <Keybuk> sudo status mystuff
[16:35] <Keybuk> what does that say before you run restart?