mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
This is now the preferred location in Debian. See: https://lintian.debian.org/tags/systemd-service-in-odd-location https://bugs.debian.org/992465 https://bugs.debian.org/987989 https://salsa.debian.org/debian/debhelper/-/commit/d70caa69c64b124e3611c967cfab93aef48346d8 https://lists.debian.org/debian-devel/2021/08/msg00275.html Tests: - Lintian no longer shows errors: E: freedombox: systemd-service-in-odd-location lib/.../calibre-server-freedombox.service - Comparing the old .deb and newly generated .deb with these changes. All the systemd files show that they are moved from /lib to /usr/lib/systemd. - After upgrading the deb from older version to a version these changes, services installed by the package are available (tested after restart with wordpress and claibre). Services tweaked by the package have the changed configuration reflected as shown by systemctl show {service-name}.service (tested after restart with quassel). Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
21 lines
372 B
Desktop File
21 lines
372 B
Desktop File
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
[Unit]
|
|
Description=FreedomBox Service (Plinth)
|
|
Documentation=man:plinth(1)
|
|
After=network.target
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/plinth
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
User=plinth
|
|
Group=plinth
|
|
StandardOutput=null
|
|
StandardError=null
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|