/srv/irclogs.ubuntu.com/2010/11/25/#upstart.txt

twbIn 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:38
twbIs the manpage incomplete?  I would expect it to mention if additional options were accepted and ignored for reasons of backwards compatibility.04:39
twbFor now I have just instrumented it as if it was Debian's reboot/halt/poweroff:05:12
twbchroot /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" "$@"'05:12
sorentwb: -d, -i, and -h are all ignored.08:16
twbThanks.08:16
sorentwb: Sure.08:17
=== JanC_ is now known as JanC
jetienneq. 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:13
jetiennescript = ? bash ?16:14
ionHOSTNAME 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
ionkeybuk: How about set -u by default in Upstart scripts? :-)16:15
jetienneah ok 16:16
jetienneion: understood thanks16:16
Keybukion: I think I answered that one once already16:16
Keybukit makes programming shell in Upstart more surprising than it should be16:16
Keybukand makes it pretty hard to actually do common shell-y things16:16
ionok16:16
jetiennesudo initctl restart mystuff <- this doesnt work ?16:31
jetiennethe man page seems to say ok, but in practice i got an error 16:31
jetiennesudo initctl restart lshow_http_proxy16:31
jetienneinitctl: Unknown instance: 16:31
jetiennebut this works with start/stop/status16:31
jetienneso it cant be really unknown 16:32
Keybukis it running?16:35
Keybukie.16:35
Keybuksudo status mystuff16:35
Keybukwhat does that say before you run restart?16:35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!