synology群晖 DSM6 命令行service control list(terminal)
查看命令:
output:
output:
- Copyright (c) 2003-2020 Synology Inc. All rights reserved.
- SynoService Tool Help (Version 25426)
- Usage: synoservice
- --help Show this help
- --help-dev More specialty functions for deveplopment
- --is-enabled [ServiceName] Check if the service is enabled
- --status [ServiceName] Get the status of specified services
- --enable [ServiceName] Set runkey to yes and start the service (alias to --start)
- --disable [ServiceName] Set runkey to no and stop the service (alias to --stop)
- --hard-enable [ServiceName] Set runkey to yes and start the service and its dependency (alias to --hard-start)
- --hard-disable [ServiceName] Set runkey to no and stop the service and its dependency (alias to --hard-stop)
- --restart [ServiceName] Restart the given service
- --reload [ServiceName] Reload the given service
- --pause [ServiceName] Pause the given service
- --resume [ServiceName] Resume the given service
- --pause-by-reason [ServiceName] [Reason] Pause the service by given reason
- --resume-by-reason [ServiceName] [Reason] Resume the service by given reason
- --pause-all (-p) [Reason] (Event) Pause all service by given reason with optional event(use -p to include packages)
- --pause-all-no-action (-p) [Reason] (Event) Set all service runkey to no but leave the current service status(use -p to include packages)
- --resume-all (-p) [Reason] Resume all service by given reason(use -p to include packages)
- --reload-by-type [type] (buffer) Reload services with specified type
- --restart-by-type [type] (buffer) Restart services with specified type
- Type may be {file_protocol|application}
- Sleep $buffer seconds before exec the command (default is 0)
复制代码
output:
- Copyright (c) 2003-2020 Synology Inc. All rights reserved.
- SynoService Tool Help (Version 25426)
- Usage: synoservice
- --help Show this help
- --help-dev More specialty functions for deveplopment
- --is-enabled [ServiceName] Check if the service is enabled
- --status [ServiceName] Get the status of specified services
- --enable [ServiceName] Set runkey to yes and start the service (alias to --start)
- --disable [ServiceName] Set runkey to no and stop the service (alias to --stop)
- --hard-enable [ServiceName] Set runkey to yes and start the service and its dependency (alias to --hard-start)
- --hard-disable [ServiceName] Set runkey to no and stop the service and its dependency (alias to --hard-stop)
- --restart [ServiceName] Restart the given service
- --reload [ServiceName] Reload the given service
- --pause [ServiceName] Pause the given service
- --resume [ServiceName] Resume the given service
- --pause-by-reason [ServiceName] [Reason] Pause the service by given reason
- --resume-by-reason [ServiceName] [Reason] Resume the service by given reason
- --pause-all (-p) [Reason] (Event) Pause all service by given reason with optional event(use -p to include packages)
- --pause-all-no-action (-p) [Reason] (Event) Set all service runkey to no but leave the current service status(use -p to include packages)
- --resume-all (-p) [Reason] Resume all service by given reason(use -p to include packages)
- --reload-by-type [type] (buffer) Reload services with specified type
- --restart-by-type [type] (buffer) Restart services with specified type
- Type may be {file_protocol|application}
- Sleep $buffer seconds before exec the command (default is 0)
复制代码
- restart DSM Webapplication:
- restart synoscgi
复制代码
|