[ 
https://issues.apache.org/jira/browse/QUARKS-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15232336#comment-15232336
 ] 

ASF GitHub Bot commented on QUARKS-13:
--------------------------------------

Github user ddebrunner commented on a diff in the pull request:

    https://github.com/apache/incubator-quarks/pull/79#discussion_r59043494
  
    --- Diff: scripts/cron/startapp.cron ---
    @@ -0,0 +1,27 @@
    +#
    +# Licensed to the Apache Software Foundation (ASF) under one or more
    +# contributor license agreements.  See the NOTICE file distributed with
    +# this work for additional information regarding copyright ownership.
    +# The ASF licenses this file to You under the Apache License, Version 2.0
    +# (the "License"); you may not use this file except in compliance with
    +# the License.  You may obtain a copy of the License at
    +#
    +#    http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing, software
    +# distributed under the License is distributed on an "AS IS" BASIS,
    +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +# See the License for the specific language governing permissions and
    +# limitations under the License.
    +#
    +# Crontab file which contains settings for scheduling the execution of a 
    +# monitoring script every minute using cron.
    +#
    +# You must set the QUARKS environment variable to point to your Quarks 
    --- End diff --
    
    Wouldn't be easier to have the quarks location passed in as a command line 
argument rather than requiring an evironment variable set elsewhere?


> Start over Quarks when Quarks crashes (Linux)
> ---------------------------------------------
>
>                 Key: QUARKS-13
>                 URL: https://issues.apache.org/jira/browse/QUARKS-13
>             Project: Quarks
>          Issue Type: New Feature
>          Components: Runtime
>            Reporter: Victor Dogaru
>            Assignee: Victor Dogaru
>              Labels: failure-recovery
>
> Thinking of a mechanism which restarts the Quarks application if the JVM 
> running Quarks hangs or closes unexpectedly. These options come to mind:
> - Write a script which checks for the pid of the jvm process running Quarks 
> and restarts Quarks if the pid is not there. Run the script every minute 
> using a cron job.
> - Setup Quarks app to run as a Linux service. Use inittab or systemd to 
> manage Linux services and have options to restart a managed process 
> automatically.
> There is also the hardware option. Embedded platforms frequently rely on 
> watchdog hardware that resets it automatically if software stops periodically 
> signalling the hardware that it is still alive.
> Anyone have any thoughts on this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to