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.