Skip to content

Instantly share code, notes, and snippets.

@Psycojoker
Created July 22, 2019 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Psycojoker/9baf145cebee06e14b6760617e00b60a to your computer and use it in GitHub Desktop.
Save Psycojoker/9baf145cebee06e14b6760617e00b60a to your computer and use it in GitHub Desktop.
[restart_service]
name = "Restart service"
command = "echo pouet $YNH_ACTION_SERVICE"
user = "root" # optional
cwd = "/" # optional
accepted_return_codes = [0, 1, 2, 3] # optional
description = "a dummy stupid exemple or restarting a service"
[restart_service.arguments]
[restart_service.arguments.service]
type = "string"
ask = "service to restart"
example = "nginx"
[echo_plop]
name = "echo plop"
command = "echo plop"
[echo_plop.arguments]
[echo_plop.arguments.argument_one]
type = "string"
ask = "some stuff"
example = "stuff"
[echo_plop.arguments.argument_two]
type = "string"
ask = "some stuff"
example = "stuff"
[echo_plop.arguments.argument_three]
type = "string"
ask = "some stuff"
example = "stuff"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment