Messyidea
ee124a6d3c
Update Initscripts
...
"$(which caddy)" is not work at startup.
After this change, I can run "insserv -d caddy" to start caddy automatically on boot.
2017-06-04 12:18:33 +08:00
Luca Favatella
956266cd79
Make CADDYPATH equal across init scripts
...
See also https://github.com/mholt/caddy/pull/1272#issue-191256343
2017-03-28 22:04:19 +01:00
Daniel van Dorp
dbd76f7a57
dist/init/linux-sysvinit: process @weingart's feedback ( #1008 )
...
* dist/init/linux-sysvinit: use kill -0 to test process status
* dist/init/linux-sysvinit: use service (as root) instead of /etc/init.d/
2016-08-09 22:29:13 -06:00
Daniel van Dorp
3a4f8e8d0c
dist/init/linux-sysvinit: execute setcap directly
...
`$(which setcap)` might evaluate to nothing,
and this way the error thrown will be more clear.
If setcap is not available on Debian/Ubuntu,
you can install the package `libcap2-bin`
2016-08-05 16:33:47 +02:00
Daniel van Dorp
f3a3bf6204
dist/init/linux-sysvinit: improve legacy compatibility ( #1002 )
...
* dist/init/linux-sysvinit: pass --oknodo for --start as well
* dist/init/linux-sysvinit: manually rm PIDFILE
Since start-stop-daemon --remove-pidfile is new and not present
everywhere.
2016-08-05 08:15:32 -06:00
Daniel van Dorp
22a4b6cde2
dist/init/linux-sysvinit: fix minor typo in DAEMONOPTS
2016-08-05 14:04:30 +02:00
Daniel van Dorp
251c38bfb2
dist/init/linux-sysvinit: caddy for SysVinit
...
In addition to `linux-upstart` and `linux-systemd`, I think this one
might be very useful too.
The script is based on [this script](https://git.devuan.org/fredg/stuffs/blob/master/caddy/init.d/caddy )
by @fredg, found via [Installation du serveur Caddy sous Devuan · Frédéric Galusik](http://galusik.xyz/installation-caddy-server-devuan/#démon:d7570338f345f168f3c50f22e7f8c47c ).
I have modified it into an extended version myself, since I had the need for this.
2016-08-01 20:51:22 +02:00