Skip to content

Commit

Permalink
add auto restart policy to restart rock-ons on failure up to 5 times. r…
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Jul 12, 2015
1 parent 4ed9bd6 commit 389c6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/views/rockon_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

DOCKER = '/usr/bin/docker'
ROCKON_URL = 'https://localhost/api/rockons'
DCMD = [DOCKER, 'run', '--log-driver=syslog',]
DCMD = [DOCKER, 'run', '--log-driver=syslog', '--restart=on-failure:5',]
DCMD2 = list(DCMD) + ['-d']

import logging
Expand Down

0 comments on commit 389c6da

Please sign in to comment.