unit2run.py, a Python script for converting systemd units

From: Avery Payne <avery.p.payne_at_gmail.com>
Date: Sat, 2 Apr 2016 19:37:23 -0700

I'm announcing the 0.1 release of unit2run.py, which is a small
brain-damaged hack that attempts to create a ./run file from a systemd
unit. It is released under the ISC license.

The following features are available:

* It will pump out a horrifically formatted shell script. It might even be
legible.
* Sometimes the shell scripts actually work, regardless of the supervisor.
Sometimes.

It has the following limitations:

* It only understands about 4 statements, 2 of which do *absolutely nothing*
.
* It laughs at [sections]. Same goes for dependency handling, socket
activation, and other systemd features. Ha-ha!
* It will eat your kittens and overwrite your existing run files in the
same directory if given the chance, so um, don't do that.
* It currently suffers from "procedural programming".
* Not if but when it breaks, you get to keep all the pieces.

Feel free to download it and have a laugh or two. Yes, this was written in
my spare time, and it shows.

http://bitbucket.org/avery_payne/unit2run.py

P.S. make sure that there isn't already a file named "run" in the directory
you are running the script in. You wouldn't like the results, trust me.
Received on Sun Apr 03 2016 - 02:37:23 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC