Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Caddy doesn't autostart on boot #12

Closed
6 tasks done
Monviech opened this issue Nov 28, 2023 · 1 comment
Closed
6 tasks done

Caddy doesn't autostart on boot #12

Monviech opened this issue Nov 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Monviech
Copy link
Owner

Monviech commented Nov 28, 2023

https://docs.opnsense.org/development/examples/api_enable_services.html

  • Rewrite the ServiceController.php to extend the APIMutableServiceController instead of the ApiControllerBase.
  • Fix that Caddy doesnt automatically start after system boot
    • Create two additional jinja2 templates.
    • /etc/rc.conf.d/caddy with caddy_enable="YES" or caddy_enable="NO" based on general.enabled = 1 or 0
    • Move the /usr/local/etc/rc.d/caddy file out of the caddy binary package, and create a template for it. Use the setup.sh script to make it executable after template generation.
    • Make sure the template for the rc.d/caddy file is only generated once.
@Monviech Monviech self-assigned this Nov 28, 2023
@Monviech Monviech added the bug Something isn't working label Nov 28, 2023
@Monviech Monviech changed the title Showing status of Caddy in the "Services" Widget Showing status of Caddy in the "Services" Widget - Caddy doesn't autostart on boot Nov 28, 2023
@Monviech Monviech changed the title Showing status of Caddy in the "Services" Widget - Caddy doesn't autostart on boot Caddy doesn't autostart on boot Nov 29, 2023
@Monviech
Copy link
Owner Author

Fixed in 1.0.5a

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant