Hi Renaud,

Many thanks for your work on synapse. I'm upgrading one of my machines 
to 6.7 and am pleased I no longer have to maintain my own 
virtualenv-based synapse.

As I am preparing a port for mautrix-hangouts, I would like to check a 
couple of decisions in the synapse port that differed from what I had 
chosen in my local version. They are really very minor nitpicks, but I'd 
like to ask your reasoning so I may be consistent:

 - config files stored in /var/synapse; I had these all in /etc/synapse

 - pid file stored in /var/synapse/homeserver.pid; I had this in 
   /var/run/synapse/homeserver.pid

Lastly, instead of relying on a custom python init system (synctl), I 
found the builtin rc.subr setup worked well:

> #!/bin/ksh
> 
> daemon="/usr/local/bin/python3"
> daemon_flags="-m synapse.app.homeserver -c /etc/synapse/homeserver.yaml 
> --daemonize"
> daemon_user="_synapse"
> 
> . /etc/rc.d/rc.subr
> 
> rc_pre() {
>       install -d -o _synapse -g _synapse /var/run/synapse/
> }
> 
> rc_cmd $1

Cheers,

Tom

Reply via email to