This script allows you to install, uninstall, and check the status of a service on both Linux (using systemd) and Windows operating systems.
-
Install the service:
- The script will detect the operating system and install the service accordingly.
-
Uninstall the service:
- The script will detect the operating system and uninstall the service accordingly.
-
Check service status:
- The script will detect the operating system and display the service status.
- Windows x64, Linux x64
Install the service on Linux:
chmod +x python-multios.exe
./python-multios.exe service-installer-multios.py
Uninstall the service on Windows:
python-multios.exe service-installer-multios.py
Check service status on Linux:
python-multios.exe service-installer-multios.py
- The service name is defined in the
SERVICE_NAME
variable in the script. - The script assumes that the service is configured correctly for the respective operating system.
- For Linux, the script uses
systemd
to manage the service. Ifsystemd
is not available, the installation and uninstallation will fail. - For Windows, the script uses the built-in Windows service management tools.
This script is licensed under the MIT License or Apache License 2.0