summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/lib/systemd/system/openct.service7
-rw-r--r--projectroot/usr/lib/tmpfiles.d/openct.conf1
2 files changed, 8 insertions, 0 deletions
diff --git a/projectroot/lib/systemd/system/openct.service b/projectroot/lib/systemd/system/openct.service
new file mode 100644
index 000000000..becbd5931
--- /dev/null
+++ b/projectroot/lib/systemd/system/openct.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=OpenCT
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/openct-control init
+ExecStop=/usr/sbin/openct-control shutdown
diff --git a/projectroot/usr/lib/tmpfiles.d/openct.conf b/projectroot/usr/lib/tmpfiles.d/openct.conf
new file mode 100644
index 000000000..6f481fc5a
--- /dev/null
+++ b/projectroot/usr/lib/tmpfiles.d/openct.conf
@@ -0,0 +1 @@
+d /run/openct 0755 root root -