Re: Conditionally reload a service from another service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1. decide on a global path like `/run/http/restart'
2. give your LE script access to write there
3. use a `.path' unit to trigger on the file above being created and triggering a one-liner that running as root restarts apache and deletes the file again

This way your “run as root” is limited to that one, tiny script

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux