[Unit] Description=SOGo is a groupware server After=network.target After=mariadb.service [Service] Environment="PREFORK=3" Environment="LD_LIBRARY_PATH=/lib:/usr/lib:/opt/yunohost/__APP__/Library/Libraries/sogo:/opt/yunohost/__APP__/Local/Library/Libraries/sogo" EnvironmentFile=-/etc/default/__APP__ Type=forking ExecStart=/opt/yunohost/__APP__/sbin/sogod -WOWorkersCount ${PREFORK} -WOPidFile /var/run/__APP__/sogo.pid -WOLogFile /var/log/__APP__/sogo.log PIDFile=/var/run/__APP__/sogo.pid User=__APP__ [Install] WantedBy=multi-user.target