You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
475 B

  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. USE_PROCD=1
  4. NAME=snowflake-proxy
  5. PROG=/usr/bin/$NAME
  6. start_service() {
  7. procd_open_instance
  8. procd_set_param command "$PROG" -verbose
  9. procd_set_param stdout 1
  10. procd_set_param stderr 1
  11. procd_set_param user snowflake
  12. procd_set_param group snowflake
  13. procd_set_param respawn
  14. [ -x /sbin/ujail ] && {
  15. procd_add_jail snowflake-proxy ronly
  16. procd_add_jail_mount /etc/ssl/certs
  17. procd_set_param no_new_privs 1
  18. }
  19. procd_close_instance
  20. }