/srv/irclogs.ubuntu.com/2016/06/16/#upstart.txt

ahrii'm trying to force mysql to start after remote filesystems have been mounted (as i've moved /var/lib/mysql to an NFS share and left a symlink in its place). i altered /etc/init/mysql.conf so that: "start on (runlevel [2345] and started remote-filesystems)" but upon reboot the service is stuck in "mysql stop/waiting" - i'm on 14.04 LTS (but actually it's Mint)08:39
AnrDaemonDo not edit tasks.08:40
AnrDaemonCreate .override if you want.08:40
ahrioh, ok!08:40
ahriwill that make the execution order i want actually work, though?08:41
AnrDaemonAnd MySQL will not start with moved datadir, becaus it is not allowed to read from any other places.08:41
ahrium, running "service mysql start" or "start mysql" works fine08:41
ahriobviously after mounting08:41
AnrDaemonThen try mounted MOUNTPOINT=/xxx08:42
ahricool, i'll try that. can i selectively override with a .override file? i.e. only say "start on (runlevel [2345] and mounted MOUNTPOINT=/share)" in that file?08:45
ahrialso: "mounted" worked perfectly! thank you very much for that tip!08:46
ahrinow it's working i just need to revert that file and make the .override08:46
AnrDaemonOf course. .override is read after main task definition, and any stanzas found in .override will… well, override stanzas in .conf.08:47
ahrinice, upstart seems way neater than other solutions08:48
ahrii've not really had much need to investigate this stuff before08:48
ahrione last question: what should me "stop on" stanza be? i guess i want to stop mysql before that share is unmounted08:49
AnrDaemonIt's straightforward. >.> Translating initd job to upstart job often means you delete 90% of it, and then it just works.08:49
ahriis there an "unmounting"?08:49
AnrDaemonIDK. Probably not.08:49
AnrDaemonhttp://upstart.ubuntu.com/cookbook/08:49
ahriexcellent, thanks a bunch08:54

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