Is there a way to make a service wanted by multiple targets (or to have multiple install directives) so that when installed a symbolic link is created in all places.
My example is the following systemd file
[Unit] Description=Run script to fix-audio mappings [Service] Type=forking ExecStart=/bin/bash -c '/usr/local/bin/fix-audio &' RemainAfterExit=yes [Install] WantedBy=multi-user.target
What this does is run a script to fix the audio mappings for my machine (without it sound only comes from the subwoofer - which is pretty useless). Unfortunately after sleep/suspend/hibernate the mappings seem to reset so I also need this script to be triggered when waking up.
Is there a way to say
WantedBy=multi-user.target,sleep.target or similar?
I cannot seem to find any documentation about this. Alternatively, is there a better way to achieve what I need?