sleinen / samplicator

Send copies of (UDP) datagrams to multiple receivers, with optional sampling and spoofing
GNU General Public License v2.0
389 stars 132 forks source link

Multiples instances #67

Open dafefa1 opened 4 years ago

dafefa1 commented 4 years ago

Hello, how do I add more instances & processes to autostart?

currenty I'm receiving on port 8999 ExecStart=/usr/local/bin/samplicate -d 0 -S -p 8999 -c "/usr/local/etc/samplicator.conf

but how do I add a second instance to receive on anoter port?,

I duplicate samplicator.service to samplicator2.service and enable that service, but since I already have 1 service (samplicator), its possible to create a second process for that service? or the way I do it is correct?, create a second service to run a different process?

thanks

bbayles commented 4 years ago

I think creating a second systemd unit is fine, yes.