mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Add a systemd unit file
It's just better if we get activated via systemd rather than dbus. Various bits of configury/makefile taken from polkit. https://bugs.freedesktop.org/show_bug.cgi?id=58468
This commit is contained in:
committed by
Bastien Nocera
parent
870a7a8361
commit
9ea025d9cb
@ -9,6 +9,15 @@ $(dbus_services_DATA): $(dbus_services_in_files)
|
||||
dbus_confdir = $(sysconfdir)/dbus-1/system.d
|
||||
dbus_conf_DATA = net.reactivated.Fprint.conf
|
||||
|
||||
systemdservice_in_files = fprintd.service.in
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
systemdservicedir = $(systemdsystemunitdir)
|
||||
systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
|
||||
$(systemdservice_DATA): $(systemdservice_in_files) Makefile
|
||||
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
|
||||
endif
|
||||
|
||||
polkitdir = $(datadir)/polkit-1/actions
|
||||
polkit_in_files = net.reactivated.fprint.device.policy.in
|
||||
|
||||
|
||||
8
data/fprintd.service.in
Normal file
8
data/fprintd.service.in
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Fingerprint Authentication Daemon
|
||||
Documentation=man:fprintd(1)
|
||||
|
||||
[Service]
|
||||
Type=dbus
|
||||
BusName=net.reactivated.Fprint
|
||||
ExecStart=@libexecdir@/fprintd
|
||||
@ -2,3 +2,4 @@
|
||||
Name=net.reactivated.Fprint
|
||||
Exec=@LIBEXECDIR@/fprintd
|
||||
User=root
|
||||
SystemdService=fprintd.service
|
||||
|
||||
Reference in New Issue
Block a user