splashtop_service_restart_macos.sh - limehawk/rmm-scripts GitHub Wiki
splashtop_service_restart_macos.sh
Restarts the Splashtop Streamer service on macOS.
Overview
This script restarts the Splashtop Streamer service on macOS by unloading and reloading the launch daemon, which is useful for troubleshooting connectivity issues or applying configuration changes.
Purpose
Restarts the Splashtop Streamer service on macOS by unloading and reloading the launch daemon.
Prerequisites
- macOS
- Root/sudo privileges
- Splashtop Streamer installed
Configuration
Required Inputs
The script uses a hardcoded value:
PLIST_PATH: Path to Splashtop launch daemon (/Library/LaunchDaemons/com.splashtop.streamer-for-admin.plist)
Behavior
- Checks if the Splashtop launch daemon plist file exists
- Stops the Splashtop service using launchctl unload
- Starts the Splashtop service using launchctl load
- Reports restart status
Security Notes
- Requires sudo/root privileges to manage system launch daemons
- Verifies Splashtop is installed before attempting restart
- Gracefully handles service stop errors (allows restart even if service wasn't running)
Exit Codes
0= Success1= Failure (Splashtop not installed or service failed to start)
Example Output
[ SPLASHTOP SERVICE RESTART - macOS ]
--------------------------------------------------------------
Stopping Splashtop service...
Starting Splashtop service...
[ COMPLETE ]
--------------------------------------------------------------
Splashtop services restarted successfully
Version History
- v1.0.0 - Initial release
Links
- View Script Source
- Scripts - Back to script index