summarylogtreecommitdiffstats
path: root/kotod.service
diff options
context:
space:
mode:
Diffstat (limited to 'kotod.service')
-rw-r--r--kotod.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/kotod.service b/kotod.service
new file mode 100644
index 000000000000..09d576432d54
--- /dev/null
+++ b/kotod.service
@@ -0,0 +1,23 @@
+# It is not recommended to modify this file in-place, because it will
+# be overwritten during package upgrades. If you want to add further
+# options or overwrite existing ones then use
+# $ systemctl edit kotod.service
+# See "man systemd.service" for details.
+
+# Note that almost all daemon options could be specified in
+# /etc/koto.conf
+
+[Unit]
+Description=Koto daemon
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/kotod -daemon=0 -pid=/run/kotod/koto.pid
+ExecReload=/usr/bin/kill -HUP $MAINPID
+ExecStop=/usr/bin/koto-cli stop
+User=koto
+Group=koto
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target