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.

postsrsd.systemd.in 786B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=PostSRSd Daemon
  3. [Service]
  4. Type=simple
  5. Restart=always
  6. # Fallback defaults.
  7. Environment=SRS_DOMAIN=localhost.localdomain
  8. Environment=SRS_EXCLUDE_DOMAINS=
  9. # Fill in a default value for SRS_DOMAIN using postconf.
  10. RuntimeDirectory=@PROJECT_NAME@
  11. ExecStartPre=/bin/sh -c '{ echo -n SRS_DOMAIN= ; postconf -h mydomain ; } >/run/@PROJECT_NAME@/default'
  12. EnvironmentFile=-/run/@PROJECT_NAME@/default
  13. # Load the real configuration.
  14. EnvironmentFile=@CONFIG_DIR@/@PROJECT_NAME@
  15. ExecStart=@CMAKE_INSTALL_PREFIX@/sbin/@POSTSRSD@ -f "${SRS_FORWARD_PORT}" -r "${SRS_REVERSE_PORT}" -d "${SRS_DOMAIN}" -s "${SRS_SECRET}" -a "${SRS_SEPARATOR}" -n "${SRS_HASHLENGTH}" -N "${SRS_HASHMIN}" -u "${RUN_AS}" -c "${CHROOT}" -X"${SRS_EXCLUDE_DOMAINS}"
  16. [Install]
  17. WantedBy=multi-user.target