File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11Name: usbrelay
2- Version: 1.1.1
2+ Version: 1.1.2
33Release: %autorelease
44Summary: A library and command line tool to control USB-connected relays based on hidapi
55License: GPL-2.0 -or-later
Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ count = usbrelay_py.board_count()
8787
8888if (count < 1 ):
8989 print ("No usbrelay modules connected" ,flush = True )
90- exit ()
90+ # exit with EX_UNAVAILABLE
91+ exit (69 )
9192else :
9293 print ("Modules Connected: " ,count ,flush = True )
9394
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ StartLimitIntervalSec=10
66
77[Service]
88Type =simple
9- Restart =always
9+ # Daemon exits with EX_UNAVAILABLE (69) when there is no compatible hardware plugged in
10+ Restart =on-failure
11+ RestartPreventExitStatus =69
1012RestartSec =1
1113DynamicUser =yes
1214# SupplementaryGroups should match the group used in udev rules
You can’t perform that action at this time.
0 commit comments