summary refs log tree commit diff
diff options
context:
space:
mode:
authorClayton G. Hobbs <clay@lakeserv.net>2016-05-15 00:03:29 -0400
committerClayton G. Hobbs <clay@lakeserv.net>2016-05-15 00:03:29 -0400
commit2611c6dcb64efabbd36c4925175c1533aeddb51e (patch)
treecafc17688e144e2ab6278417b7514dc38763cebb
parentfc0196f697314307ab4ebb00bf7f5de43ca672fe (diff)
Install systemd unit file from setup.py
Now distributions created from setup.py put the systemd unit file in the
correct location for units provided by packages.  It may then be enabled
and started by the user with systemctl.

Closes #11.
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 444eaf0..34ba60c 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,8 @@ setup(
     install_requires=["requests"],
     data_files = [
         ("/usr/share/kaylee", ["data/icon_inactive.png", "data/icon.png",
-            "options.json.tmp"])
+            "options.json.tmp"]),
+        ("/usr/lib/systemd/user", ["systemd/kaylee.service"])
     ],
     entry_points = {
         "console_scripts": [