summaryrefslogtreecommitdiff
path: root/files/taskd/taskd.service
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-03-25 16:20:35 +0300
committereug-vs <eugene@eug-vs.xyz>2022-03-25 16:20:35 +0300
commitb4a2c9441c804e44df6cd4de74c54df6c5edb538 (patch)
tree3c3f3b8dd52d068ed6f8b833d46596e7b9083651 /files/taskd/taskd.service
parent09efd213a4330958f3d0695d6ff6a3a1cf4342eb (diff)
downloadinfrastructure-b4a2c9441c804e44df6cd4de74c54df6c5edb538.tar.gz
feat: add initial taskserver setup playbook
Diffstat (limited to 'files/taskd/taskd.service')
-rw-r--r--files/taskd/taskd.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/taskd/taskd.service b/files/taskd/taskd.service
new file mode 100644
index 0000000..dc66757
--- /dev/null
+++ b/files/taskd/taskd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Secure server providing multi-user, multi-client access to Taskwarrior data
+Requires=network.target
+After=network.target
+Documentation=https://taskwarrior.org/docs/#taskd
+
+[Service]
+ExecStart=/usr/local/bin/taskd server --data /var/lib/taskd
+Type=simple
+User=taskd
+Group=taskd
+WorkingDirectory=/var/lib/taskd
+PrivateTmp=true
+InaccessibleDirectories=/home /root /boot /opt /mnt /media
+ReadOnlyDirectories=/etc /usr
+
+[Install]
+WantedBy=multi-user.target
+