Since the usbmuxd process is ran by the _usbmuxd user account the readme example for kill usbmuxd won't work.
Three routes I can see:
- You add sudo to the PhoneController.cs and tell users how to modify their /etc/sudoers file to allow password less process restarts.
YOUR_COMPUTER_USERNAME ALL=(ALL) /sbin/reboot,/usr/bin/killall
- Just remove the
kill usbmuxd example from the readme (my personal favorite)
- Use a LaunchDaemon with a watch file path that kills the usbmuxd process. You would need to modify the phone controller to touch a file like
touch /private/tmp/.restart_usbmuxd. Also users would need to script or cp the launch daemon to the correct location and start the service with launchctl
I can provide more details if you are interested in option 3. I have no real stake in this since I don't use this feature.
Since the
usbmuxdprocess is ran by the_usbmuxduser account the readme example forkill usbmuxdwon't work.Three routes I can see:
kill usbmuxdexample from the readme (my personal favorite)touch /private/tmp/.restart_usbmuxd. Also users would need to script or cp the launch daemon to the correct location and start the service withlaunchctlI can provide more details if you are interested in option 3. I have no real stake in this since I don't use this feature.