Hi Bill, On Wt Grudnia 11 2007, 4:18 am, Bill Shupp wrote: > On Dec 10, 2007, at 11:30 AM, Maciej Sołtysiak wrote: > >> And on systems which do not have /etc/inittab, /etc/rc.local is used >> >> == other thing to Bill == >> Bill, did you know that using your toaster on Ubuntu (e.g. 7.10) will >> cause problems because, there's not /etc/inittab and /etc/rc.local has >> >> exit 0 >> >> at the end of the file, so the scripts will add >> >> csh -cf '/command/svscanboot &' >> >> after exit 0 and you have to move it manually? >> > > Where is inittab on on Ubuntu 7.10? I checked that 7.10 and 7.04 do not have /etc/inittab. Ubuntu is using upstart.
If you take a look at daemontools-0.76/package/run script you'll notice that this script will: 1) check if /etc/inittab exists, if so, will run run.inittab script to add svscan 2) if it doesn't it will add svscan line to /etc/rc.local Normaly (2) is okay but in Ubuntu you'll end up with /etc/rc.local looking like this: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 csh -cf '/command/svscanboot &' because /etc/rc.local has exit 0 at the end. For ubuntu this package/run script should be a little bit smarter... or do it in a different way, that I am not aware of. Also you need to chmod this file to add execute permission. This is how I do it on Ubuntu machines. Maybe I'm missing something. My Best, Maciej
