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.4.0.tar.gz (5.6 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.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systemd_one_line-0.4.0.tar.gz
  • Upload date:
  • Size: 5.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 e4b3118ab4cb93b59bc6885a471e7d7503387777116f943e7f3ac259bec09023
MD5 b111a55be449e6ab53e671f3b56b54a4
BLAKE2b-256 a0ba159e91d510f09ad494c0f8829e4b10276542fb92162bdd95bac8de9aa4c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systemd_one_line-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c23fed4e534172ffd91dc47afcfab96fbe303b04314082463c5e48d3c28438
MD5 a2a0dac592f6cb535dc10d2a25827778
BLAKE2b-256 ab1a4a6b7b962efd00145217036bf7da6f8e9faf7f28b9cab2db6547788aa3f1

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