diff --git a/files/Makefile.am b/files/Makefile.am index dac901f8..5bf13071 100644 --- a/files/Makefile.am +++ b/files/Makefile.am @@ -6,6 +6,7 @@ systemdsystemunitdir = @systemdsystemunitdir@ # List of systemd service files to install dist_systemdsystemunit_DATA = \ adsprpcd.service \ + adsprpcd_audiopd.service \ cdsprpcd.service \ cdsp1rpcd.service \ gdsp0rpcd.service \ diff --git a/files/adsprpcd_audiopd.service b/files/adsprpcd_audiopd.service new file mode 100644 index 00000000..99bdf1aa --- /dev/null +++ b/files/adsprpcd_audiopd.service @@ -0,0 +1,14 @@ +[Unit] +Description=audiopd aDSP RPC daemon +After=dev-fastrpc-adsp.device dev-fastrpc-adsp-secure.device +ConditionPathExists=|/dev/fastrpc-adsp +ConditionPathExists=|/dev/fastrpc-adsp-secure + +[Service] +Type=exec +ExecStart=/usr/bin/adsprpcd audiopd +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target