Christian Wittmer 2014-03-28 18:49:46 +00:00 committed by Git OBS Bridge
parent 9a499fc5bf
commit 14dee11119
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 28 18:46:44 UTC 2014 - chris@computersalat.de
- fix pidfile dir
* systemd -> /run/squid.pid
* SysVinit -> /var/run/squid.pid
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 16 08:54:50 UTC 2014 - boris@steki.net Sun Mar 16 08:54:50 UTC 2014 - boris@steki.net

View File

@ -10,7 +10,7 @@ ExecStart=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf
ExecReload=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf -k reconfigure ExecReload=/usr/sbin/squid -F $SQUID_START_OPTIONS -f /etc/squid/squid.conf -k reconfigure
ExecStop=/usr/sbin/squid -F -f /etc/squid/squid.conf -k shutdown ExecStop=/usr/sbin/squid -F -f /etc/squid/squid.conf -k shutdown
LimitNOFILE=4096 LimitNOFILE=4096
PIDFile=/var/run/squid.pid PIDFile=/run/squid.pid
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -92,7 +92,7 @@ BuildRequires: libxml2-devel
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
%endif %endif
%if 0%{?suse_version} > 1140 %if 0%{?suse_version} >= 1210
BuildRequires: systemd BuildRequires: systemd
%{?systemd_requires} %{?systemd_requires}
%define has_systemd 1 %define has_systemd 1
@ -151,7 +151,11 @@ export LDFLAGS='-Wl,-z,relro,-z,now -pie'
--datadir=/usr/share/squid \ --datadir=/usr/share/squid \
--sharedstatedir=/var/squid \ --sharedstatedir=/var/squid \
--with-logdir=/var/log/squid \ --with-logdir=/var/log/squid \
%if 0%{?has_systemd}
--with-pidfile=/run/squid.pid \ --with-pidfile=/run/squid.pid \
%else
--with-pidfile=/var/run/squid.pid \
%endif
--with-dl \ --with-dl \
--enable-disk-io \ --enable-disk-io \
--enable-storeio \ --enable-storeio \