service

package module
v0.0.0-...-fb5a986 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

README

service - a caddy plugin

Build community

This plugin uses github.com/kardianos/service to create services on Caddy. To work, it implements two flags on Caddy executable:

  • -name, which corresponds to the name of the service (default: Caddy).
  • -service, which can be either install, uninstall, start, stop or restart.

Right now, this plugin seems to work well on most systems that kardianos/service supports, which are Windows XP+, Linux/(systemd | Upstart | SysV), and OSX/Launchd.

This plugin wasn't widely tested. We count on the community to let us know if you find any eventual bugs and tell us what we can do to improve its functionality.

Install a Caddy service:
caddy -service install [-name optionalServiceName] [-option optionValue]

Notes:

  1. You must set the -conf flag to your Caddyfile.
  2. Notice that if you install the service with a name that is not the default's, you will need to specify it everytime you use one of the other commands using the flag -name.
  3. You can install the service with default Caddy flag values (e.g. -conf MyCaddyfile)
Uninstall a Caddy service:
caddy -service uninstall [-name optionalName]
Start a Caddy service:
caddy -service start [-name optionalName]
Stop a Caddy service:
caddy -service stop [-name optionalName]
Restart a Caddy service:
caddy -service restart [-name optionalName]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL