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.1.tar.gz (5.5 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.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systemd_one_line-0.3.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 2f06ef17f3e1c0802ef61bde86fd534d2c9c995c0a0b802d6d84ce09ee21e4bf
MD5 ed8e26ef03f1091d53c11a72aa18805f
BLAKE2b-256 32da4946e018a845ba42c79f843ea81d4fe5b55bf500e658bb9d6f1af60e6031

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systemd_one_line-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7946884cdfd669b5f817e56a3facf441d48a8ed5ea9413e43aaa6eb302b784
MD5 003f1fb47c9ee3b006ae5f505d916f7c
BLAKE2b-256 299842469a14e8b2c57b7c18de4c199a3ffffa73978729839ce77d679ab0bf2a

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