ALT Linux Bugzilla
– Attachment 5659 Details for
Bug 28145
php5-fpm-fcgi systemd service
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
gear repo patch
php-fpm-systemd.patch (text/plain), 1.85 KB, created by
Dmitriy Kulik
on 2012-11-30 01:53:47 MSK
(
hide
)
Description:
gear repo patch
Filename:
MIME Type:
Creator:
Dmitriy Kulik
Created:
2012-11-30 01:53:47 MSK
Size:
1.85 KB
patch
obsolete
>diff --git a/.gear-rules b/.gear-rules >index c08892f..e90104a 100644 >--- a/.gear-rules >+++ b/.gear-rules >@@ -2,3 +2,4 @@ copy: *.ini > copy?: *.patch > copy: *.init > copy: *.logrotate >+copy: *.service >diff --git a/php-fpm.service b/php-fpm.service >new file mode 100644 >index 0000000..34956f4 >--- /dev/null >+++ b/php-fpm.service >@@ -0,0 +1,13 @@ >+[Unit] >+Description=The PHP FastCGI Process Manager >+After=syslog.target network.target >+ >+[Service] >+Type=forking >+PIDFile=/var/run/php5-fpm/php5-fpm.pid >+ExecStart=/usr/sbin/php-fpm -g /var/run/php5-fpm/php5-fpm.pid -y /etc/fpm/php5-fpm.conf >+ExecReload=/bin/kill -USR2 $MAINPID >+ExecStop=kill $MAINPID >+ >+[Install] >+WantedBy=multi-user.target >\ No newline at end of file >diff --git a/php5-fpm-fcgi.spec b/php5-fpm-fcgi.spec >index 648ac1b..65fe785 100644 >--- a/php5-fpm-fcgi.spec >+++ b/php5-fpm-fcgi.spec >@@ -16,6 +16,7 @@ Source1: php.ini > Source2: %name-browscap.ini > Source3: php5-fpm.init > Source4: php5-fpm.logrotate >+Source5: php-fpm.service > > Patch0: php5-fpm-fcgi-5.3.3.20100722-config.m4.patch > Patch2: php5-fpm-fcgi-5.3.3.20100722-build.patch >@@ -121,6 +122,9 @@ mkdir -p %buildroot/%_runtimedir/php5-fpm > # config for logrotate > install -pD -m644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/php5-fpm > >+mkdir -p %buildroot%_sysconfdir/systemd/system/multi-user.target.wants >+install -m 644 %SOURCE5 %buildroot%_sysconfdir/systemd/system/multi-user.target.wants/php-fpm.service >+ > %pre > /usr/sbin/groupadd -r -f _php_fpm 2>/dev/null ||: > /usr/sbin/groupadd -r -f _webserver 2>/dev/null ||: >@@ -153,6 +157,7 @@ install -pD -m644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/php5-fpm > %config(noreplace) %_sysconfdir/logrotate.d/php5-fpm > %php5_servicedir/%php5_sapi > %_man8dir/* >+%_sysconfdir/systemd/system/multi-user.target.wants/php-fpm.service > > %changelog > * Wed Nov 14 2012 Anton Farygin <rider@altlinux.ru> 5.3.18.20121017-alt1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28145
: 5659