summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/systemd/system/dyafk@.service14
l---------etc/systemd/system/multi-user.target.wants/dyafk@xyz.service1
2 files changed, 15 insertions, 0 deletions
diff --git a/etc/systemd/system/dyafk@.service b/etc/systemd/system/dyafk@.service
new file mode 100644
index 00000000..e5840703
--- /dev/null
+++ b/etc/systemd/system/dyafk@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Douyu AFK for user %I
+After=network.target
+
+[Service]
+User=%i
+
+Type=simple
+ExecStart=/usr/bin/dyafk
+
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/etc/systemd/system/multi-user.target.wants/dyafk@xyz.service b/etc/systemd/system/multi-user.target.wants/dyafk@xyz.service
new file mode 120000
index 00000000..b5e40b24
--- /dev/null
+++ b/etc/systemd/system/multi-user.target.wants/dyafk@xyz.service
@@ -0,0 +1 @@
+/etc/systemd/system/dyafk@.service \ No newline at end of file