/srv/irclogs.ubuntu.com/2017/10/13/#upstart.txt

NecrosanI have a binary (simple dumb worker) that I need to run X amount of times. Individual clients must restart if they die. Can upstart handle something like this?17:32
NecrosanIf so, how should I be executing it? A for loop or something within my upstart script or do I need to make an actual intelligent script to do the monitoring of processes?17:33
Necrosan(Which I guess would negate the purpose of upstart entirely)17:33
Necrosanfigured it out w/ the worker/workers model setup. pretty slick18:39
AnrDaemonNecrosan: You can write two jobs. One master (stater), one the actual worker that runs the binary.20:46
Necrosanyeah, that's what I ended up doing20:46
Necrosanworked a treat20:46
AnrDaemonIt's actually in the cookbook, I just don't have it on hand right now.20:46
NecrosanI think I might have stumbled upon it after I had already did it.20:47
NecrosanHelps to scroll down all the way ;)20:47
AnrDaemon:D20:47
AnrDaemonAfter a number of situations like that, I got a habit of reading the manuals at least diagonally before using something new.20:48
AnrDaemonHelps get to know the available features. Even if you are not going to use them right now, it somehow gets stuck in the back of your head, and pop when you stubble upon new requirements.20:49
Necrosanye20:49
NecrosanWriting C mostly, was a nice break 8-)20:49
Necrosan(same problems there re: manuals, but you usually don't notice them until you experience undefined behavior)20:50
AnrDaemonUndefined? More like unexpected.20:51
NecrosanYa, prob the more appropriate word20:52

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