summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-01-30 01:12:06 +0100
committertv <tv@nomic.retiolum>2013-01-30 01:12:06 +0100
commit0c37512813f26c098e2c1d34c42e6b843009e9b2 (patch)
treeb6fa2758106ae10ddcd56bc6a15f20630b2ec0e4
parentc17d13380945c0909adeddd2375c1c9c8aa26782 (diff)
//service README: install test-server.py as systemd service on arch
-rw-r--r--services/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/services/README.md b/services/README.md
new file mode 100644
index 00000000..eff94113
--- /dev/null
+++ b/services/README.md
@@ -0,0 +1,28 @@
+# //services
+
+## install and run test-server.py as systemd service
+
+### install dependencies
+
+ pacman -S python2-pyasn1 twisted
+
+### install systemd service and configuration
+
+ cp /krebs/services/etc/systemd/system/krebs-services-test-server.service \
+ /etc/systemd/system/
+
+ cp /krebs/services/etc/conf.d/krebs-services-test-server \
+ /etc/conf.d/
+
+### create services user
+
+ useradd -m -r -l -f -1 -d /opt/services -k /var/empty services
+
+### configure test-server.py
+
+ $EDITOR /opt/services/services.txt
+
+### run
+
+ systemctl enable krebs-services-test-server
+ systemctl start krebs-services-test-server