From 1d6b45bebea66391a2a535a3bb328a5732aaa75d Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 5 Nov 2022 21:25:31 +0100 Subject: Add existing work --- systemd/ceres.service | 14 ++++++++++++++ systemd/ceres.sysusers | 1 + systemd/ceres.tmpfiles | 4 ++++ 3 files changed, 19 insertions(+) create mode 100644 systemd/ceres.service create mode 100644 systemd/ceres.sysusers create mode 100644 systemd/ceres.tmpfiles (limited to 'systemd') diff --git a/systemd/ceres.service b/systemd/ceres.service new file mode 100644 index 0000000..12b63c9 --- /dev/null +++ b/systemd/ceres.service @@ -0,0 +1,14 @@ + +[Unit] +Description=Recipe server for your favorite dishes +After=network.target +After=mariadb.service + +[Service] +User=ceres +Group=ceres +ExecStart=/usr/bin/ceres + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/ceres.sysusers b/systemd/ceres.sysusers new file mode 100644 index 0000000..e269688 --- /dev/null +++ b/systemd/ceres.sysusers @@ -0,0 +1 @@ +u ceres - "ceres daemon user" - /bin/bash diff --git a/systemd/ceres.tmpfiles b/systemd/ceres.tmpfiles new file mode 100644 index 0000000..1c3101c --- /dev/null +++ b/systemd/ceres.tmpfiles @@ -0,0 +1,4 @@ +d /var/lib/ceres 0750 +d /var/lib/ceres/recipes 0750 +d /var/lib/ceres/recipes/image 0750 +Z /var/lib/ceres - ceres ceres -- cgit v1.2.3-70-g09d2