tlsdated.rc 430 B

12345678910111213141516171819
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. description="start a daemon to continuously set time via a helper"
  5. command="tlsdated"
  6. command_args="${TLSDATED_OPTS} -- ${TLSDATED_CMD}"
  7. command_background="true"
  8. pidfile="/var/run/${SVCNAME}.pid"
  9. depend() {
  10. use net
  11. }
  12. start_pre() {
  13. checkpath -d -m 0700 -o tlsdate:tlsdate "${TLSDATED_CACHE_DIR}"
  14. }