mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
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)
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user