matrix-whatsapp.initd (563B)
1 #!/sbin/openrc-run 2 # Copyright 2019 Gentoo Authors 3 # Distributed under the terms of the GNU General Public License v2 4 5 description="Matrix Whatsapp bridge" 6 description_reload="Reload configuration and reopen log files." 7 8 command_user=${SYNAPSE_USER:-synapse} 9 conf=${SYNAPSE_CONFIG:-/etc/mautrix-whatsapp/config.yaml} 10 command=/usr/bin/mautrix-whatsapp 11 command_args="-c ${conf}" 12 13 depend() { 14 use dns 15 need net 16 provide matrix-whatsapp 17 } 18 19 checkconfig() { 20 if [ ! -e $SYNAPSE_CONFIG ] ; then 21 eerror "You need a $SYNAPSE_CONFIG file to run synapse" 22 return 1 23 fi 24 }