Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.package
Commits
1356c81c
Commit
1356c81c
authored
Sep 14, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed slapgrid-ur line in cron
parent
af3de92b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
slapos-node/slaptest
slapos-node/slaptest
+1
-1
templates/debian/cron.d
templates/debian/cron.d
+1
-1
No files found.
slapos-node/slaptest
View file @
1356c81c
...
@@ -274,7 +274,7 @@ class CronFile:
...
@@ -274,7 +274,7 @@ class CronFile:
# cron file from slapos documentation
# cron file from slapos documentation
self
.
slapgrid_sr_base
=
"""*/5 * * * * root /opt/slapos/bin/slapgrid-sr --logfile=/opt/slapos/slapgrid-sr.log --pidfile=/opt/slapos/slapgrid-sr.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-sr.log 2>&1"""
self
.
slapgrid_sr_base
=
"""*/5 * * * * root /opt/slapos/bin/slapgrid-sr --logfile=/opt/slapos/slapgrid-sr.log --pidfile=/opt/slapos/slapgrid-sr.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-sr.log 2>&1"""
self
.
slapgrid_cp_base
=
"""*/5 * * * * root /opt/slapos/bin/slapgrid-cp --logfile=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-cp.log 2>&1"""
self
.
slapgrid_cp_base
=
"""*/5 * * * * root /opt/slapos/bin/slapgrid-cp --logfile=/opt/slapos/slapgrid-cp.log --pidfile=/opt/slapos/slapgrid-cp.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-cp.log 2>&1"""
self
.
slapgrid_ur_base
=
"""0 0 * * * root
i=20; false
; while [ $? != 0 ]; do /opt/slapos/bin/slapgrid-ur --verbose --logfile=/opt/slapos/slapgrid-ur.log --pidfile=/opt/slapos/slapgrid-ur.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-ur.log 2>&1; sleep $(($i*60)); if [ $i < 20 ]; then let i++; fi; done;"""
self
.
slapgrid_ur_base
=
"""0 0 * * * root
/opt/slapos/bin/slapgrid-ur --maximal_delay=86400 --verbose --logfile=/opt/slapos/slapgrid-ur.log --pidfile=/opt/slapos/slapgrid-ur.pid /etc/opt/slapos/slapos.cfg; i=20
; while [ $? != 0 ]; do /opt/slapos/bin/slapgrid-ur --verbose --logfile=/opt/slapos/slapgrid-ur.log --pidfile=/opt/slapos/slapgrid-ur.pid /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapgrid-ur.log 2>&1; sleep $(($i*60)); if [ $i < 20 ]; then let i++; fi; done;"""
self
.
slapformat_base
=
"""0 0 * * * root /opt/slapos/bin/slapformat --log_file=/opt/slapos/slapformat.log -c /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapformat.log 2>&1"""
self
.
slapformat_base
=
"""0 0 * * * root /opt/slapos/bin/slapformat --log_file=/opt/slapos/slapformat.log -c /etc/opt/slapos/slapos.cfg >> /opt/slapos/slapformat.log 2>&1"""
def
parse
(
self
,
cron_line
):
def
parse
(
self
,
cron_line
):
...
...
templates/debian/cron.d
View file @
1356c81c
...
@@ -6,7 +6,7 @@ MAILTO=root
...
@@ -6,7 +6,7 @@ MAILTO=root
*/
5
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
cp
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
cp
.
log
2
>&
1
*/
5
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
cp
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
cp
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
cp
.
log
2
>&
1
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
0
0
*
*
*
root
i
=
20
;
false
;
while
[
$?
!=
0
];
do
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
ur
.
log
2
>&
1
;
sleep
$(($
i
*
60
));
if
[
$
i
<
20
];
then
let
i
++;
fi
;
done
;
0
0
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
maximal_delay
=
86400
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
;
i
=
20
;
while
[
$?
!=
0
];
do
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
ur
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
ur
.
log
2
>&
1
;
sleep
$(($
i
*
60
));
if
[
$
i
<
20
];
then
let
i
++;
fi
;
done
;
0
0
*
*
*
root
/
opt
/
slapos
/
bin
/
slapformat
--
verbose
--
log_file
=/
opt
/
slapos
/
slapformat
.
log
-
c
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapformat
.
log
2
>&
1
0
0
*
*
*
root
/
opt
/
slapos
/
bin
/
slapformat
--
verbose
--
log_file
=/
opt
/
slapos
/
slapformat
.
log
-
c
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapformat
.
log
2
>&
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment