mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Tests:
- Daemon starts up with uid/gid set to root.
- Daemon does not run by default if a request is not received. Socket file is
created with 666 permissions and root:root ownership. Socket file parent directory
is created with 755 permissions and root:root ownership.
- Daemon starts if a request is sent to the socket using nc.
- If there an exception in daemon starting, then restart is done every second to
5 seconds, forever.
- Build a Debian package.
- Install it on fresh trixie Debian VM. Ensure that setup works and privileged
daemon is auto-enabled.
- Start a fresh trixie Debian VM and install freedombox from Debian repos.
Upgrade to the built package. Privileged daemon works and is auto-enabled.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
22 lines
433 B
Desktop File
22 lines
433 B
Desktop File
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
[Unit]
|
|
Description=FreedomBox Privileged Service
|
|
Documentation=https://wiki.debian.org/FreedomBox/
|
|
# Don't hit the start rate limiting.
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStart=/usr/bin/freedombox-privileged
|
|
TimeoutSec=300s
|
|
User=root
|
|
Group=root
|
|
NotifyAccess=main
|
|
PrivateTmp=yes
|
|
Restart=on-failure
|
|
# Don't restart too fast
|
|
RestartSec=1
|
|
RestartSteps=3
|
|
RestartMaxDelaySec=5
|