[02:08] <twb> I haven't edited an upstart job in a long time
[02:09] <twb> I have one that says:
[02:09] <twb> exec su supybot -s /bin/sh -c 'exec supybot --allow-default-owner /var/lib/supybot/supybot.conf'
[02:09] <twb> If I want to run savelog /var/log/irc/messages.log first, can I put a second "exec" line in there?
[02:10] <twb> Or... IIRC I do something like 'exec start \n <shell script> \n exec stop"
[02:10] <AnrDaemon> twb: You can remove that abomination of exec first.
[02:10] <twb> Aha "pre-start exec"
[02:10] <AnrDaemon> And use setuid to change EUID of the job.
[02:11] <twb> Note that this is an ancient host running upstart 0.6.5 and I'm not allowed to upgrade
[02:11] <AnrDaemon> *sigh*
[02:13] <twb> I don't see "setuid" mentioned in init(5) so I'm just gonna slap a "pre-start exec savelog" in there, and run away
[02:23] <twb> OK, it's working good enough for government work
[02:23] <twb> Thanks for your help & sorry to grief you with an ancient version :-(
[02:38] <AnrDaemon> Hate those systems. >.<