Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3755148
D3512.id9037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3512.id9037.diff
View Options
diff --git a/roles/webserver-alkane/php/files/restart-php-fpm.sh b/roles/webserver-alkane/php/files/restart-php-fpm.sh
--- a/roles/webserver-alkane/php/files/restart-php-fpm.sh
+++ b/roles/webserver-alkane/php/files/restart-php-fpm.sh
@@ -27,5 +27,6 @@
# Update through Salt the service if needed & restart php-fpm
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+rm -f /usr/local/etc/rc.d/php_fpm
grep -q auto-generated /usr/local/etc/rc.d/php-fpm || salt-call state.apply roles/webserver-alkane/php/service
/usr/local/etc/rc.d/php-fpm restart
diff --git a/roles/webserver-alkane/php/service.sls b/roles/webserver-alkane/php/service.sls
--- a/roles/webserver-alkane/php/service.sls
+++ b/roles/webserver-alkane/php/service.sls
@@ -18,6 +18,9 @@
- source: salt://roles/webserver-alkane/php/files/rc/php-fpm
- mode: 755
+/usr/local/etc/rc.d/php_fpm:
+ file.absent
+
/usr/local/bin/restart-php-fpm:
file.managed:
- source: salt://roles/webserver-alkane/php/files/restart-php-fpm.sh
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 13:32 (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252422
Default Alt Text
D3512.id9037.diff (1 KB)
Attached To
Mode
D3512: Prune new rc service name php_fpm
Attached
Detach File
Event Timeline
Log In to Comment