Skip to main content

Create systemd services and timers in one command

Project description

systemd-one-line

Create systemd jobs in one-line.

Motivation

I can't be bothred to edit files. I don't like an LLM routing around in my system files editing stuff. This lets you create things in one line.

Atlernatives and prior work

Just edit the file systemd can do something similar, but the files are not persisted.

Installation

pipx install systemd-one-line

Usage

Create a new service systemd-one-line service --exec blah --timer --every 1h

systemd-one-line service --edit --exec blah --timer --every 1h

Crete a user daeomon which starts when you log in:

systemd-one-line service \
  --user --autostart \
  --name bgmus \
  --type simple \
  --exec "$HOME/.local/bin/bgmus" \
  --edit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

systemd_one_line-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

systemd_one_line-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file systemd_one_line-0.2.0.tar.gz.

File metadata

  • Download URL: systemd_one_line-0.2.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for systemd_one_line-0.2.0.tar.gz
Algorithm Hash digest
SHA256 edce966683cee5fce617be97474dc8c6780de17fd320177cf727edb179565a14
MD5 8ddf95824cb786b5c1f9e6b833d321e4
BLAKE2b-256 ad17d8d5d9d4a4324dd07609cc08d5fbddc674be990971cba22d9e4cec3d789f

See more details on using hashes here.

File details

Details for the file systemd_one_line-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for systemd_one_line-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d20dd9a2833b9937481f36dcc1f39dcca2aeed79ff0a08cbad0223e09d29b12
MD5 9923990664dd8b4b4ed5faed24c94a95
BLAKE2b-256 da5862e6df449d209d9bcc5f42b0c4e66936b53b89becd5c3a6cfbff9558d6ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page