Después de instalar e intentar arrancar el servicio con
systemctl start postsrsd
el status devuelve:
[root@localhost ]# systemctl status postsrsd ● postsrsd.service - PostSRSd Daemon Loaded: loaded (/usr/lib/systemd/system/postsrsd.service; disabled; vendor preset: disabled) Active: failed (Result: start-limit) since Thu 2016-10-13 18:38:06 CEST; 12min ago Process: 26499 ExecStart=/usr/sbin/postsrsd -f${SRS_FORWARD_PORT} -r${SRS_REVERSE_PORT} -d${SRS_DOMAIN} -s${SRS_SECRET} -u${RUN_AS} -c${CHROOT} -X${SRS_EXCLUDE_DOMAINS} (code=exited, status=1/FAILURE) Main PID: 26499 (code=exited, status=1/FAILURE) Oct 13 18:38:06 localhost systemd[1]: Unit postsrsd.service entered failed state. Oct 13 18:38:06 localhost systemd[1]: postsrsd.service failed. Oct 13 18:38:06 localhost systemd[1]: postsrsd.service holdoff time over, scheduling restart. Oct 13 18:38:06 localhost systemd[1]: start request repeated too quickly for postsrsd.service Oct 13 18:38:06 localhost systemd[1]: Failed to start PostSRSd Daemon. Oct 13 18:38:06 localhost systemd[1]: Unit postsrsd.service entered failed state. Oct 13 18:38:06 localhost systemd[1]: postsrsd.service failed.
En /var/log/messages aparece una línea con el error:
Oct 13 16:39:18 localhost systemd: [/usr/lib/systemd/system/postsrsd.service:7] Unknown lvalue 'Environment SRS_DOMAIN' in section 'Service'
SOLUCIÓN:
Editar /usr/lib/systemd/system/postsrsd.service
Las siguientes dos líneas son incorrectas, les falta un igual:
Environment SRS_DOMAIN=localhost.domain Environment SRS_EXCLUDE_DOMAINS=
Correcto:
Environment=SRS_DOMAIN=jorgearce.es Environment=SRS_EXCLUDE_DOMAINS=