t/model_tests.d/systemd-examples/remove-service/default-alsa-state
raw| 1 | # |
| 2 | # Note that two different ALSA card state management schemes exist and they |
| 3 | # can be switched using a file exist check - /etc/alsa/state-daemon.conf . |
| 4 | # |
| 5 | |
| 6 | [Unit] |
| 7 | Description=Manage Sound Card State (restore and store) |
| 8 | Documentation=man:alsactl(1) |
| 9 | ConditionPathExists=/etc/alsa/state-daemon.conf |
| 10 | |
| 11 | [Service] |
| 12 | Type=simple |
| 13 | ExecStart=-/usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon |
| 14 | ExecStop=-/usr/sbin/alsactl -E HOME=/run/alsa -s kill save_and_quit |