mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
package/polkit: install service file
The default installed service file is missing a target, which causes preset-all to not enable the service. Add the service file to package/polkit with the addition of: [Install] WantedBy=multi-user.target Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
22d784d575
commit
3f885d9dfe
@ -43,4 +43,10 @@ define POLKIT_PERMISSIONS
|
|||||||
/usr/bin/pkexec f 4755 root root - - - - -
|
/usr/bin/pkexec f 4755 root root - - - - -
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define POLKIT_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 644 $(POLKIT_PKGDIR)/polkit.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/polkit.service
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
12
package/polkit/polkit.service
Normal file
12
package/polkit/polkit.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
|
||||||
|
Description=Authorization Manager
|
||||||
|
Documentation=man:polkit(8)
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.freedesktop.PolicyKit1
|
||||||
|
ExecStart=/usr/lib/polkit-1/polkitd --no-debug
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user