On Sun, Aug 15, 2004 at 02:13:41PM +0000, Gerrit Pape wrote:
On Sun, Aug 15, 2004 at 12:59:59PM +0200, Dariush Pietrzak wrote:
If you mean an init script in /etc/init.d/ for starting and stopping runit by ``normal/traditional way'', then, no, this is not supported.That's the way I\m running it right now, and this seem like 'debian way'
Sure it works on the first glance, but it's not supported.Are you saying it won't work in the long run? What kind of problems are
you expecting? Or are you saying - this solution is not glorious enough,
and you don't want your name or name of your creation associated with it?
It would break the feature of runit providing a process hierarchy with pid 1 as root to hook in service daemons, to run them in a guaranteedTo tell the truth, I don't understand what you just said.
It doesen't and you just ignore any reports that say otherwise.
I don't think it's a good idea; runsvdir definitely shouldn't be handled through an init script.why not?
I don't care what you do personally, but please don't distribute a
package that does that. I suggest you try to better understand what
the benefits of the runit package are, and why it is designed the
way it is, if you want to use it. If you have any questions, feel
free to ask on the <[email protected]> mailing list, such
topics are discussed there.
OK, so what should I do now?
I would like ability to install it without touching inittab,
installation fails with locked-down setup, and then the system is
left with runit in half-configured state and one cannot install nor
purge it, like this:
Unpacking runit (from .../tmp/runit_1.0.4-1_i386.deb) ...
Setting up runit (1.0.4-1) ...
Adding SV inittab entry...
/var/lib/dpkg/info/runit.postinst: kill: (1) - No such process
dpkg: error processing runit (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
runit
and like this:
apt-get remove --purge runit
Reading Package Lists... Done
Building Dependency Tree... Done
Removing SV inittab entry...
/var/lib/dpkg/info/runit.postrm: kill: (1) - No such process
dpkg: error processing runit (--purge):
It would generally be nicer if it wouldn't mess with inittab that much...
On Fri, Aug 13, 2004 at 11:38:51AM +0200, Dariush Pietrzak wrote:this only streghtens the argument that it should not mess with inittab,
I would like ability to install it without touching inittab,
Please see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=234106
Other packages rely on runit adding the inittab entry and so enablingI don't understand, does this mean that the only way to run runit is with inittab? What about normal/traditional way of running it as daemon?
service supervision.
I run my servers inside vserver, so either there's no process no 1, orinstallation fails with locked-down setup, and then the system is
left with runit in half-configured state and one cannot install nor
purge it, like this:
Unpacking runit (from .../tmp/runit_1.0.4-1_i386.deb) ...
Setting up runit (1.0.4-1) ...
Adding SV inittab entry...
/var/lib/dpkg/info/runit.postinst: kill: (1) - No such process
dpkg: error processing runit (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
runit
Hmm, how comes that there's no process no 1 on your system?
well, I see that, but how am I supposed to remove runit now?Removing SV inittab entry...Ok same problem.
/var/lib/dpkg/info/runit.postrm: kill: (1) - No such process
dpkg: error processing runit (--purge):
above, this is mandatory. But I'm open for suggestions if you know aIt would be nice if it wouldn't just die when kill to process 1 fails,
On Fri, Aug 13, 2004 at 11:48:22AM +0000, Gerrit Pape wrote:
On Fri, Aug 13, 2004 at 11:38:51AM +0200, Dariush Pietrzak wrote:
I would like ability to install it without touching inittab,
Other packages rely on runit adding the inittab entry and so enabling service supervision.I don't understand, does this mean that the only way to run runit is with inittab? What about normal/traditional way of running it as daemon?
well, I see that, but how am I supposed to remove runit now?Removing SV inittab entry...Ok same problem.
/var/lib/dpkg/info/runit.postrm: kill: (1) - No such process
dpkg: error processing runit (--purge):
above, this is mandatory. But I'm open for suggestions if you know aIt would be nice if it wouldn't just die when kill to process 1 fails,
I'll try to suggest alternative solution with runit running as daemon, this
If you mean an init script in /etc/init.d/ for starting and stoppingThat's the way I\m running it right now, and this seem like 'debian way'
runit by ``normal/traditional way'', then, no, this is not supported.
It would break the feature of runit providing a process hierarchy withTo tell the truth, I don't understand what you just said.
pid 1 as root to hook in service daemons, to run them in a guaranteed
process state.This is anit-init.d rant, which is kind of moot considering high quality
http://smarden.org/runit/benefits.html#state
Classy, I did it differently, but this seems less messywell, I see that, but how am I supposed to remove runit now?Removing SV inittab entry...Ok same problem.
/var/lib/dpkg/info/runit.postrm: kill: (1) - No such process
dpkg: error processing runit (--purge):
Edit /var/lib/dpkg/info/runit.postinst, and remove the line that says
``kill -HUP 1''. Then run
# dpkg --purge runit
Thanks.Ok, I think I'll change it to ``kill -HUP 1 || :'' in the postinst.above, this is mandatory. But I'm open for suggestions if you know aIt would be nice if it wouldn't just die when kill to process 1 fails,
Ok, so maybe would you consider providing alternative package, or maybeI'll try to suggest alternative solution with runit running as daemon, thisI don't think this is a good idea for the reason mentioned above.
If you mean an init script in /etc/init.d/ for starting and stoppingThat's the way I\m running it right now, and this seem like 'debian way'
runit by ``normal/traditional way'', then, no, this is not supported.
to me. This way runit does not disturb other deamons and parts of the
system. I'd consider this playing nice feature as rather important.
It would break the feature of runit providing a process hierarchy withTo tell the truth, I don't understand what you just said.
pid 1 as root to hook in service daemons, to run them in a guaranteed
process state.This is anit-init.d rant, which is kind of moot considering high quality
http://smarden.org/runit/benefits.html#state
of debian's init scripts, and the fact that I don't want to rewrite all
those scripts, I just want to plug runit into existing system.
Thanks.Ok, I think I'll change it to ``kill -HUP 1 || :'' in the postinst.above, this is mandatory. But I'm open for suggestions if you know aIt would be nice if it wouldn't just die when kill to process 1 fails,
Ok, so maybe would you consider providing alternative package, or maybeI'll try to suggest alternative solution with runit running as daemon, thisI don't think this is a good idea for the reason mentioned above.
you don't mind me uploading such, although this would make little sense, considering tiny amount of changes to provide this functionality.
On Sun, Aug 15, 2004 at 12:59:59PM +0200, Dariush Pietrzak wrote:Are you saying it won't work in the long run? What kind of problems are
If you mean an init script in /etc/init.d/ for starting and stopping runit by ``normal/traditional way'', then, no, this is not supported.That's the way I\m running it right now, and this seem like 'debian way'
Sure it works on the first glance, but it's not supported.
The runit package as is doesn't ``disturb other deamons and parts of the system'', I don't know where you have that idea from. Having a programWell, I had problems with setting it up.
respawned from /etc/inittab is perfectly fine, and not against anyWell, for some this is perfectly fine, for others - it isn't.
Your system doesn't have an init process running, that's why you have aI don't have a problem. Runit's packaging does. It's very aggressive and
I've got deamons that I would like to be kept running, those are usually faulty pieces of software, they do die ocassionally, or they generally needIt would break the feature of runit providing a process hierarchy with pid 1 as root to hook in service daemons, to run them in a guaranteedTo tell the truth, I don't understand what you just said.
It's about the guaranteed process state outlined in the web page I
pointed to, this is part of service supervision. May I ask for the
reasons you want to use the runit package?
There's no need to ``rewrite all those scripts'', I don't know where youI don't know where do you get this idea of it pluggin 'perfectly'.
have this idea from; and the runit package as is plugs perfectly into an existing Debian system AFAICS, I see no reason to change this.
I don't think it's a good idea; runsvdir definitely shouldn't be handled through an init script.why not?
don't distribute a package that does that.OK, so what should I do now? Can I use your code, or maybe you're planning
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 45:12:33 |
| Calls: | 12,111 |
| Calls today: | 2 |
| Files: | 15,010 |
| Messages: | 6,518,466 |