[04:38] 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] Is the manpage incomplete? I would expect it to mention if additional options were accepted and ignored for reasons of backwards compatibility. [05:12] For now I have just instrumented it as if it was Debian's reboot/halt/poweroff: [05:12] 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] twb: -d, -i, and -h are all ignored. [08:16] Thanks. [08:17] twb: Sure. === JanC_ is now known as JanC [16:13] 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] script = ? bash ? [16:15] HOSTNAME is probably not defined in the environment, as set -u and perhaps set -x and logging the output should tell you. [16:15] ? [16:15] keybuk: How about set -u by default in Upstart scripts? :-) [16:16] ah ok [16:16] ion: understood thanks [16:16] ion: I think I answered that one once already [16:16] it makes programming shell in Upstart more surprising than it should be [16:16] and makes it pretty hard to actually do common shell-y things [16:16] ok [16:31] sudo initctl restart mystuff <- this doesnt work ? [16:31] the man page seems to say ok, but in practice i got an error [16:31] sudo initctl restart lshow_http_proxy [16:31] initctl: Unknown instance: [16:31] but this works with start/stop/status [16:32] so it cant be really unknown [16:35] is it running? [16:35] ie. [16:35] sudo status mystuff [16:35] what does that say before you run restart?