Skip to content

Commit

Permalink
Pull in socket unit from systemd service (#27)
Browse files Browse the repository at this point in the history
If the service doesn't pull in the socket unit, the latter will become
unusable until the service exits again.
This way, behavior is consistent no matter if socket activation happened
or the service was started manually/automatically.
  • Loading branch information
FallenWarrior2k authored May 28, 2021
1 parent fa4a26c commit 2b9cd23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yubikey-touch-detector.service
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[Unit]
Description=Detects when your YubiKey is waiting for a touch
Requires=yubikey-touch-detector.socket

[Service]
ExecStart=/usr/bin/yubikey-touch-detector
EnvironmentFile=-%E/yubikey-touch-detector/service.conf

[Install]
Also=yubikey-touch-detector.socket
WantedBy=default.target

0 comments on commit 2b9cd23

Please sign in to comment.