Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=LIRC Infrared Signal Decoder |
| 3 | After=network.target |
| 4 | |
| 5 | [Service] |
| 6 | Type=forking |
| 7 | EnvironmentFile=/etc/lirc/lircd.conf |
| 8 | PIDFile=/run/lirc/lircd.pid |
| 9 | ExecStartPre=/bin/mkdir -p /run/lirc |
| 10 | ExecStartPre=/bin/rm -f /dev/lircd |
| 11 | ExecStartPre=/bin/rm -f /run/lirc/lircd |
| 12 | ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd |
| 13 | |
| 14 | ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid --device=/dev/lirc0 |
| 15 | |
| 16 | ExecStopPost=/bin/rm -f /dev/lircd |
| 17 | ExecStopPost=/bin/rm -fR /run/lirc |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |