hosting_nginx.service.inc

Define a Hosting service class for NGINX.

Classes

File

web_server/nginx/hosting_nginx.service.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Define a Hosting service class for NGINX.
  5. */
  6. module_load_include('service.inc', 'hosting_web_server');
  7. class hostingService_http_nginx extends hostingService_http_public {
  8. public $type = 'nginx';
  9. public $has_restart_cmd = TRUE;
  10. function default_restart_cmd() {
  11. return 'sudo /etc/init.d/nginx reload';
  12. }
  13. }