1

Following the post here Run terminal command (python command) at start up I created a .conf file in etc/init folder with the following content.

description "initializes audio"
start on filesystem
task
script
    pulseaudio -D
    exit
end script

I use the root account in Ubuntu 16.04. Generally at start up the audio icon on the notification tray is muted and the command $ pulseaudio -D unmutes it.

However .conf doesn't seems to function as it should. I still see the audio icon muted have to manually type in the command in the terminal.

This post explains a lot of other ways to run scripts at start up, including the one I am using, but I need to know what is going wrong with my current method. So I would appreciate answers correcting my method rather than explaining other ways to run the script.

1 Answers1

0

You're using Ubuntu 16.04, a systemd operating system. Upstart mechanisms do not work on it. Write a systemd service unit, not an upstart job file. And (hint!) don't try to "dæmonize" that which is already dæmonized.

Further reading

JdeBP
  • 3,959