philh_myftp_biz.modules.Service¶
Module Contents¶
Classes¶
EXAMPLE: |
API¶
- exception philh_myftp_biz.modules.Service.ServiceDisabledError(serv: philh_myftp_biz.modules.Service.Service)¶
Bases:
Exception
- class philh_myftp_biz.modules.Service.Service(path: str | Path, *args: str)¶
Bases:
philh_myftp_biz.pc.PathEXAMPLE:
` serv = Service('/service/') `- ‘./service/*’
Running.* (Outputs ‘true’ or ‘false’ whether the service is running)
Start.* (Starts the service)
Stop.* (Stops the service)
Initialization
- Name() str¶
- property Connected: bool¶
- file(name: str) philh_myftp_biz.pc.Path¶
- _run(name: str) philh_myftp_biz.process.RunHidden¶
- start(force: bool = False) None¶
Start the Service
- property running: bool¶
Service is running
- pymod()¶
- stop() None¶
Stop the Service
- property enabled: bool¶
- enable() None¶
- disable(stop: bool = True) None¶
- logfile() None | philh_myftp_biz.pc.Path¶