feat: systemd/launchd service install, managed start/stop, install.sh (M6)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9d08e4d3fd
commit
c5faf8a682
6 files changed
+592
-7
No files matched your search
+6
-2
@@ -184,6 +184,8 @@ const commands = [_]Command{
|
||||
.{ .name = "service", .sub = "reload", .summary = "Reload configuration without stopping jobs", .usage = admin_cmds.service_reload_usage, .run = admin_cmds.cmdServiceReload },
|
||||
.{ .name = "service", .sub = "status", .summary = "Show service status", .usage = admin_cmds.service_status_usage, .run = admin_cmds.cmdServiceStatus },
|
||||
.{ .name = "service", .sub = "logs", .summary = "Show service logs", .usage = admin_cmds.service_logs_usage, .opts = &admin_cmds.service_logs_opts, .run = admin_cmds.cmdServiceLogs },
|
||||
.{ .name = "service", .sub = "install", .summary = "Install zag as a system service", .usage = admin_cmds.service_install_usage, .opts = &admin_cmds.service_install_opts, .run = admin_cmds.cmdServiceInstall },
|
||||
.{ .name = "service", .sub = "uninstall", .summary = "Remove the system service", .usage = admin_cmds.service_uninstall_usage, .run = admin_cmds.cmdServiceUninstall },
|
||||
.{ .name = "config", .sub = "show", .summary = "Show effective configuration", .usage = admin_cmds.config_show_usage, .opts = &admin_cmds.config_show_opts, .run = admin_cmds.cmdConfigShow },
|
||||
.{ .name = "config", .sub = "validate", .summary = "Validate a configuration file", .usage = admin_cmds.config_validate_usage, .opts = &admin_cmds.config_validate_opts, .run = admin_cmds.cmdConfigValidate },
|
||||
.{ .name = "config", .sub = "init", .summary = "Create a default configuration file", .usage = admin_cmds.config_init_usage, .opts = &admin_cmds.config_init_opts, .run = admin_cmds.cmdConfigInit },
|
||||
@@ -203,7 +205,7 @@ const root_help =
|
||||
\\ usage Show resource usage for a job
|
||||
\\ kill Stop a running job
|
||||
\\ clean Remove completed jobs
|
||||
\\ service Manage the zag service (start|stop|restart|reload|status|logs)
|
||||
\\ service Manage the zag service (start|stop|restart|reload|status|logs|install|uninstall)
|
||||
\\ config Configuration management (show|validate|init|install)
|
||||
\\ autocompletion Generate shell autocompletion scripts
|
||||
\\
|
||||
@@ -218,7 +220,7 @@ const root_help =
|
||||
;
|
||||
|
||||
const service_help =
|
||||
\\Usage: zag service <start|stop|restart|reload|status|logs>
|
||||
\\Usage: zag service <start|stop|restart|reload|status|logs|install|uninstall>
|
||||
\\
|
||||
\\ start Start the zag service
|
||||
\\ stop Stop the zag service
|
||||
@@ -226,6 +228,8 @@ const service_help =
|
||||
\\ reload Reload configuration without stopping jobs
|
||||
\\ status Show service status
|
||||
\\ logs Show service logs
|
||||
\\ install Install zag as a system service (systemd / launchd)
|
||||
\\ uninstall Remove the system service
|
||||
\\
|
||||
;
|
||||
|
||||
|
||||
Reference in new issue
Block a user