File: nas.service

package info (click to toggle)
nas 1.9.4-9.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,644 kB
  • sloc: ansic: 52,144; makefile: 31,377; sh: 8,077; perl: 1,104; yacc: 252; cpp: 216; lex: 68
file content (16 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Network Audio System daemon
After=syslog.target
After=network.target

[Service]
Type=simple
EnvironmentFile=-/etc/default/nas
#NOTE nasd fails if the audio device is busy
# maybe conflicts with all audio servers could help, but it fails also
# with plain alsa.. so try with fuser for now
ExecCondition=sh -c 'if fuser /dev/snd/* ; then exit 1; else exit 0; fi'
ExecStart=/usr/bin/nasd $NASD_OPTS

[Install]
WantedBy=multi-user.target