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.3.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.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systemd_one_line-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 eb0069a62b641f7efa833c5900b70b1617652e350988789969383f452747bc45
MD5 12fcf07e998696c7ffdc17e9d2b0cdd4
BLAKE2b-256 34d389b8a09e0bd27d535bed81716e6b3c0db114476a8bc2732a3e5ab5d185a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systemd_one_line-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66d9011a479c1171ba8bad3a0764324225850abf977e0934bd4f27e32e07210e
MD5 571550eedf729900242516b42f9891c4
BLAKE2b-256 327592b269ce9ed1afab4043878033771dae193f848bf1cfa09e8bcd64ded72b

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