Scripts as a service. Builds on systemctl.
Project description
sysdm
Scripts as a service. Builds on systemd.
It gives you the best from screen, cronjobs, supervisord, systemctl and journalctl.
Installation
pip install sysdm
Demo
Usage examples
sysdm create myfile.py # creates, starts and enables a new service file
sysdm create myfile.py --timer daily # the above + schedules it to run daily
sysdm ls # see the known services created by sysdm
sysdm delete # see the known services and select to delete
sysdm run # run the app in the foreground (e.g for debugging)
Features
Creating and viewing have just helped you with:
- Generate a systemd unit file on the fly
- Uses current info to determine, and pin, working directory and virtualenv paths in your unit.
- Script will start running, and also boot on start
- Script will restart on error
- Script can also be started on a schedule (e.g.
--timer daily
), using systemd timers - Changes to files in the directory of the same extension will cause a reload (e.g.
.py
) - Provides a UI for inspecting the logs of your script and start, stop etc
- Like with screen, you can leave and it will keep on running.
- Multiple people can look at it, too, when sharing a server.
- Provides flags to change settings
- UI is aware of the window-size
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sysdm-0.8.36.tar.gz
(4.3 MB
view hashes)
Built Distribution
sysdm-0.8.36-py2.py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for sysdm-0.8.36-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18cb203d241d454b15355ef2d8ba98a44a3789ac04c0fb08324b66cccf3ae534 |
|
MD5 | bb48d787c81d6cbf8c7fb2ffd12c357d |
|
BLAKE2b-256 | 0d711fc2fb59b4dac52ed5d0551ad71e0760d4e53129879d0364aa7bda0e0803 |