mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
calibre: Run service only if when installed
- This avoids attempting to run the service soon after FreedomBox is installed. Tests: - When old freedombox.deb is installed, the service is enabled. When upgraded to newer .deb with the changes, the service is still enabled but no start attempt is made by systemd. - After installation of calibre, the service is running as expected. - On a fresh installation, calibre service is working as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
cf054b0888
commit
1c47877f6b
@ -4,6 +4,7 @@
|
||||
Description=calibre Content Server
|
||||
Documentation=man:calibre-server(1)
|
||||
After=network.target
|
||||
ConditionPathExists=/usr/bin/calibre-server
|
||||
|
||||
[Service]
|
||||
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_FSETID CAP_SETFCAP CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_IPC_OWNER CAP_NET_ADMIN CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE CAP_KILL CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_LINUX_IMMUTABLE CAP_IPC_LOCK CAP_SYS_CHROOT CAP_BLOCK_SUSPEND CAP_LEASE CAP_SYS_PACCT CAP_SYS_TTY_CONFIG CAP_SYS_BOOT CAP_MAC_ADMIN CAP_MAC_OVERRIDE CAP_SYS_NICE CAP_SYS_RESOURCE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user