[Pkg-privacy-commits] [pond] 01/02: Add an optional systemd user service file.

Ximin Luo infinity0 at debian.org
Wed Oct 14 00:08:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository pond.

commit c88e692a94416caa57bb4606b5e95bde8455ad5a
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Oct 12 13:59:34 2015 +0200

    Add an optional systemd user service file.
---
 debian/README.Debian             | 23 +++++++++++++++++++++++
 debian/changelog                 |  6 ++++++
 debian/control                   |  4 ++--
 debian/docs                      |  1 -
 debian/pond.install              |  1 +
 debian/systemd-user/pond.service | 10 ++++++++++
 6 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..a581c60
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,23 @@
+The Debian package of Pond ships with a systemd user service file, that runs
+pond-client in the background in a tmux session called 'pond'.
+
+For a given user, you can have it start automatically on login with:
+
+  $ systemctl --user enable pond
+
+This assumes that the systemd user service is running, which it should be by
+default on Debian. If not, please see the systemd package documentation for
+further debugging options.
+
+You can also start it manually with:
+
+  $ systemctl --user start pond
+
+When running, you can enter the session with:
+
+  $ tmux a -tpond
+
+and leave the session by inputting the sequence `Ctrl-B, D`.
+
+For more details on how to control the service, see `man systemctl`.
+For more details on how to control the session, see `man tmux`.
diff --git a/debian/changelog b/debian/changelog
index a3b2631..fdf3477 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pond (0.1.1-2) UNRELEASED; urgency=medium
+
+  * Add an optional systemd user service file.
+
+ -- Ximin Luo <infinity0 at debian.org>  Mon, 12 Oct 2015 13:48:04 +0200
+
 pond (0.1.1-1) experimental; urgency=medium
 
   * Initial release. (Closes: #733860)
diff --git a/debian/control b/debian/control
index 72d76ec..71516ad 100644
--- a/debian/control
+++ b/debian/control
@@ -18,8 +18,8 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-privacy/packages/pond.git
 
 Package: pond
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends},
- tor
+Depends: ${shlibs:Depends}, ${misc:Depends}, tor
+Suggests: tmux, systemd
 Description: forward secure, asynchronous messaging for the discerning
  For secure, synchronous communication we have OTR and, when run over Tor, this
  is pretty good. But while we have secure asynchronous messaging in the form of
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 8e695ec..0000000
--- a/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
-doc
diff --git a/debian/pond.install b/debian/pond.install
new file mode 100644
index 0000000..1926e8c
--- /dev/null
+++ b/debian/pond.install
@@ -0,0 +1 @@
+debian/systemd-user/pond.service usr/lib/systemd/user
diff --git a/debian/systemd-user/pond.service b/debian/systemd-user/pond.service
new file mode 100644
index 0000000..893aaca
--- /dev/null
+++ b/debian/systemd-user/pond.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Pond client in a tmux session
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/tmux new-session -s pond -d "pond-client -cli"
+ExecStop=/usr/bin/tmux kill-session -t pond
+
+[Install]
+WantedBy=default.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pond.git



More information about the Pkg-privacy-commits mailing list