Skip to Content.
Sympa Menu

en - Re: [sympa-users] Register WWSympa FastCGI service fail

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Stefan Hornburg (Racke)" <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Register WWSympa FastCGI service fail
  • Date: Sat, 27 Oct 2018 17:05:07 +0200

On 10/26/18 6:29 AM, ?????? wrote:
> Hello,
>
> I installed sympa using apt-get in debian9.5, but failed to "Install
> WWSympa FCGI service". I put file
> _https://sympa-community.github.io/manual/examples/systemd/wwsympa.service_
> in /etc/systemd/system/ directory. and then run:
> $ systemctl start wwsympa.service
> it says "Failed with result 'exit-code'".
> from this example file there is
> "/var/run/sympa/wwsympa.pid","/var/run/sympa/wwsympa.socket", and
> "/etc/sysconfig/sympa", but I can't find these files in respective
> directory.
> Can anyone tell what are the paths for debian 9.5? or did I missed some
> installation of packages?
> I find there is "sympa-nginx"(Im using nginx) under "Requirements" under
> "Configure HTTP server" in documentation. But I
> try "apt-get install sympa-nginx", there is no package.
>
> Can anyone help me? Thank you.
> Ari

Hello Ari,

you need to adjust the service file for your usecase (Sympa package installed
by API) as follows.
The location of wwsympa.fcgi and web user is different. And yes, sympa-nginx
would be nice to have :-).

[Unit]
Description=WWSympa - Web interface for Sympa mailing list manager
After=syslog.target
BindTo=sympa.service

[Service]
Type=forking
PIDFile=/var/run/sympa/wwsympa.pid
ExecStart=/usr/bin/spawn-fcgi -F $FCGI_CHILDREN \
-P /var/run/sympa/wwsympa.pid \
-u $FCGI_USER -g $FCGI_GROUP $FCGI_OPTS -- \
/usr/lib/cgi-bin/sympa/wwsympa.fcgi
Environment="FCGI_CHILDREN=5"
Environment="FCGI_USER=sympa"
Environment="FCGI_GROUP=sympa"
Environment="FCGI_OPTS=-s /var/run/sympa/wwsympa.socket -M 0600 -U www-data"
EnvironmentFile=-/etc/sysconfig/sympa
Restart=always

[Install]
WantedBy=multi-user.target

Regards
Racke


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.



Archive powered by MHonArc 2.6.19+.

Top of Page