From: Seth R. <sre...@sa...> - 2005-11-01 17:41:54
|
On Mon, 2005-10-31 at 23:22 +0000, Christoph Zwerschke wrote:=20 > By the way, I also thought about adding a generic Webware Posix start=20 > script that is not a shell script, but a pure Python script. Would = that=20 > be a silly idea? I think it should work, using the shebang mechanism. >=20 > -- Christoph I don't think it is a silly idea at all. To continue the logic you used earlier... if you are running Webware you are guaranteed to have Python installed so an init script written in Python would work fine. I wish that Python was considered a standard component of a base install (for most distros it probably is in actuality) and that the whole init system was rewritten in Python. When I see things like: <snip> if test "x$my_variable" =3D "x"; then </snip> ... it kind of feels like you are using the wrong tool for the job. I mean, I understand why it is done with shell scripts I just wish it wasn't that way (and it shouldn't have to be when Python is as ubiquitous as it is). Ubuntu is at least heading down the right path, using Python for most of their administration tools. -Seth --=20 Seth Remington <sre...@sa...> |