Comments (4)
Is your scenario that you are starting apache from the command line and you want to terminate it if user code fails?
Or are you sending R code to an already running instance and want to terminate the apache child process if the R code fails?
from rapache.
We're starting Apache from the command line, and want it to terminate if user code fails to pass our tests. Our tests will exist in an eval on startup directive and named something like startup.R. I'd like the ability to cause Apache to abort if our checks in that code fail - checks which essentially amount to "Hey check that the file the user wants us to run exists, that R can parse it, and that the function they want exists within it."
from rapache.
At the moment there's no rapache feature like that, and I'm unsure if apache provides a code level api for such a termination procedure but they might.... how much is this worth to you?
Another alternative is to use a custom apache configuration with a shell script that starts apache in a single process (e.g. with the -X flag if my memory serves), runs the code and sends out a signal of success or failure in some way... not a Unix Signal but a metaphorical signal like writing to the file system or an http code response...
Then if success you can start apache with the user code.
from rapache.
That works, thanks.
from rapache.
Related Issues (20)
- rApache on Centos 6.6 with apache 2.4 HOT 22
- Broken links HOT 1
- microsoft r open HOT 2
- Rapache is not able to fetch the request when RGoogleAnalytics package is used
- exceptions in RSourceOnStartup are not logged or sent to stderr HOT 1
- Process or memory? HOT 2
- Update RPM spec file version to latest (1.2.8) HOT 8
- Installing RApache in Ubuntu 16.04 Apache/2.4.18 (Ubuntu): I get some errors HOT 4
- How do you install additional packages?
- Setting UTF-8 HOT 2
- rApache not reading ldpaths HOT 11
- Integer overflow for posts over 1GB HOT 8
- Question: concurrent requests? HOT 2
- rApache notice! *** stack smashing detected *** with mailR::send_mail
- Rsource and RreqHandler not supported? HOT 1
- Your website www.rapache.net has been hacked HOT 2
- Installation error HOT 1
- RInfo handler not working on R version 4.1.1 (2021-08-10)
- arm64 compilation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapache.