0

I have this service, running on Xubuntu.

[Unit]
Description= Controller
After=graphical.target

[Service]
ExecStart=/usr/bin/controller
StandardInput=tty-force
StandardOutput=journal
Restart=always
TimeoutSec=2s

[Install]
WantedBy=graphical.target

When a certain action happens in the program (controller), it must execute an audio (.mp3). I can guarantee that the application works.

Now running on the service, all other program functionality works, but does not play mp3 audio. I've tried different ways to create the service, but it does not work.

The controller creates a new process to play the audio. This may be the error in the systemd.

How can I make the controller program, run an audio, using a Linux service?

Sorry for my bad English.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.