diff --git a/Scripts/sogo-systemd-redhat b/Scripts/sogo-systemd-redhat index 7fdd56b96..3dacbc40b 100644 --- a/Scripts/sogo-systemd-redhat +++ b/Scripts/sogo-systemd-redhat @@ -3,8 +3,10 @@ Description=SOGo is a groupware server After=network.target [Service] +Environment="PREFORK=3" +EnvironmentFile=-/etc/sysconfig/sogo Type=forking -ExecStart=/usr/sbin/sogod -WOWorkersCount 3 -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log +ExecStart=/usr/sbin/sogod -WOWorkersCount ${PREFORK} -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log PIDFile=/var/run/sogo/sogo.pid User=sogo diff --git a/packaging/rhel/sogo.spec b/packaging/rhel/sogo.spec index 988f7c693..0b73d702b 100644 --- a/packaging/rhel/sogo.spec +++ b/packaging/rhel/sogo.spec @@ -390,6 +390,7 @@ fi # update timestamp on imgs,css,js to let apache know the files changed find %{_libdir}/GNUstep/SOGo/WebServerResources -exec touch {} \; %if 0%{?_with_systemd} + systemctl daemon-reload systemctl enable sogod systemctl start sogod > /dev/null 2>&1 %else