[Unit]
Description=Package DB Recovery Service
-DefaultDependencies=false
+DefaultDependencies=no
Before=ac.service
+Requires=local-fs.target
+After=systemd-tmpfiles-setup.service local-fs.target
[Service]
-User=root
-Group=root
-SmackProcessLabel=System
+Type=oneshot
+RemainAfterExit=yes
+SmackProcessLabel=System::Privileged
+Capabilities=cap_chown,cap_dac_override,cap_fowner,cap_mac_override=i
+SecureBits=keep-caps
ExecStart=/usr/bin/pkg-db-recovery
[Install]
-WantedBy=multi-user.target
-
+WantedBy=basic.target