Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612876 - www-servers/caddy doesn't have an init.d file
Summary: www-servers/caddy doesn't have an init.d file
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-17 04:12 UTC by Maurice Volaski
Modified: 2018-10-14 12:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sample caddy init script (caddy,546 bytes, text/plain)
2018-01-11 15:54 UTC, Winston Weinert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Volaski 2017-03-17 04:12:55 UTC
This references https://packages.gentoo.org/packages/www-servers/caddy

Thanks for bringing the caddy onboard. It's missing the init script.
Comment 1 Maurice Volaski 2017-03-17 04:18:11 UTC
user www-data referenced in the standard init script is not added to /etc/passwd
Comment 2 Ian Moone 2017-07-02 16:23:02 UTC
I made one for my overlay, feel free to copy and/or adapt. Or if the maintainer wish, I can do a PR later.

--> https://github.com/csmk/frabjous/tree/master/www-servers/caddy/files

Cheers!
Comment 3 Winston Weinert 2018-01-11 15:54:08 UTC
Created attachment 514228 [details]
sample caddy init script

Uses a few vars that should be defined in /etc/conf.d/caddy (all vars prefixed with caddy_).
Comment 4 Winston Weinert 2018-01-11 15:57:58 UTC
I had a heck of a time getting caddy working from portage. I wrote my own init script before noticing this ticket & Ian's overlay. I've attached my init script for comparison, however it is very rough around the edges - it's my first openrc script.

I have some other thoughts - should /usr/bin/caddy have capability cap_net_bind_service and run as www-data?

Alternatively, a Caddyfile could be included that drops privileges for you.