From 14798b2063cc8b9804850dec9c4f759151c3b296 Mon Sep 17 00:00:00 2001 From: Jack Henschel Date: Thu, 5 Apr 2018 17:13:12 +0200 Subject: [PATCH] Add systemd service for aptly http server and aptly api The systemd service files can be placed under `/etc/systemd/system/` (for users/administrators) or `/lib/systemd/system/` (for distributions) --- aptly-api.service | 12 ++++++++++++ aptly.service | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 aptly-api.service create mode 100644 aptly.service diff --git a/aptly-api.service b/aptly-api.service new file mode 100644 index 00000000..4167d217 --- /dev/null +++ b/aptly-api.service @@ -0,0 +1,12 @@ +[Unit] +Description=APT repository API +After=network.target +Documentation=man:aptly(1) +Documentation=https://www.aptly.info/doc/api/ + +[Service] +Type=simple +ExecStart=/usr/bin/aptly serve api -no-lock -listen=127.0.0.1:8081 + +[Install] +WantedBy=multi-user.target diff --git a/aptly.service b/aptly.service new file mode 100644 index 00000000..a22e56ca --- /dev/null +++ b/aptly.service @@ -0,0 +1,12 @@ +[Unit] +Description=APT repository server +After=network.target +Documentation=man:aptly(1) +Documentation=https://www.aptly.info/doc/commands/ + +[Service] +Type=simple +ExecStart=/usr/bin/aptly serve -listen=127.0.0.1:8080 + +[Install] +WantedBy=multi-user.target