summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-11-05 21:25:31 +0100
committerxengineering <me@xengineering.eu>2022-11-07 21:17:44 +0100
commit1d6b45bebea66391a2a535a3bb328a5732aaa75d (patch)
tree12faa62d8d8574ad8c94f4a7c9ff206c34456430 /systemd
downloadceres-1d6b45bebea66391a2a535a3bb328a5732aaa75d.tar
ceres-1d6b45bebea66391a2a535a3bb328a5732aaa75d.tar.zst
ceres-1d6b45bebea66391a2a535a3bb328a5732aaa75d.zip
Add existing work
Diffstat (limited to 'systemd')
-rw-r--r--systemd/ceres.service14
-rw-r--r--systemd/ceres.sysusers1
-rw-r--r--systemd/ceres.tmpfiles4
3 files changed, 19 insertions, 0 deletions
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