From f9cc3a0010d59a8472b867f8e24e7be1da3bebd8 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 12 Jan 2026 11:48:45 -0500 Subject: [PATCH] [systemd] Add hungryroot systemd files --- .../systemd/user/hungryroot-celery.service | 23 +++++++++++++++++++ .../systemd/user/hungryroot-django.service | 23 +++++++++++++++++++ .../systemd/user/hungryroot-flower.service | 23 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 systemd/.config/systemd/user/hungryroot-celery.service create mode 100644 systemd/.config/systemd/user/hungryroot-django.service create mode 100644 systemd/.config/systemd/user/hungryroot-flower.service diff --git a/systemd/.config/systemd/user/hungryroot-celery.service b/systemd/.config/systemd/user/hungryroot-celery.service new file mode 100644 index 0000000..ba7f6ee --- /dev/null +++ b/systemd/.config/systemd/user/hungryroot-celery.service @@ -0,0 +1,23 @@ +[Unit] +Description=Hungryroot Celery (just celery) +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=%h/src/github.com/hungryroot/hungryroot + +# Ensure Homebrew/user bins are visible (adjust if needed) +Environment=PATH=%h/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin + +# Load direnv env for the directory, then run +ExecStart=/bin/bash -lc 'eval "$(direnv export bash)" && just celery' + +Restart=on-failure +RestartSec=2 + +StandardOutput=append:/tmp/hungryroot-celery.log +StandardError=inherit + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/hungryroot-django.service b/systemd/.config/systemd/user/hungryroot-django.service new file mode 100644 index 0000000..c84b432 --- /dev/null +++ b/systemd/.config/systemd/user/hungryroot-django.service @@ -0,0 +1,23 @@ +[Unit] +Description=Hungryroot Django (just django) +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=%h/src/github.com/hungryroot/hungryroot + +# Ensure Homebrew/user bins are visible (adjust if needed) +Environment=PATH=%h/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin + +# Load direnv env for the directory, then run +ExecStart=/bin/bash -lc 'eval "$(direnv export bash)" && just django' + +Restart=on-failure +RestartSec=2 + +StandardOutput=append:/tmp/hungryroot-django.log +StandardError=inherit + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/hungryroot-flower.service b/systemd/.config/systemd/user/hungryroot-flower.service new file mode 100644 index 0000000..6770edf --- /dev/null +++ b/systemd/.config/systemd/user/hungryroot-flower.service @@ -0,0 +1,23 @@ +[Unit] +Description=Hungryroot Flower (just flower) +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=%h/src/github.com/hungryroot/hungryroot + +# Ensure Homebrew/user bins are visible (adjust if needed) +Environment=PATH=%h/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin + +# Load direnv env for the directory, then run +ExecStart=/bin/bash -lc 'eval "$(direnv export bash)" && just flower' + +Restart=on-failure +RestartSec=2 + +StandardOutput=append:/tmp/hungryroot-flower.log +StandardError=inherit + +[Install] +WantedBy=default.target