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
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
77d9bcd2
Commit
77d9bcd2
authored
Dec 11, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update slapos cron file to new entry points
parent
1b87f093
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
slapos-node/template/slapos-node.cron.d
slapos-node/template/slapos-node.cron.d
+5
-4
No files found.
slapos-node/template/slapos-node.cron.d
View file @
77d9bcd2
...
@@ -2,12 +2,13 @@ SHELL=/bin/sh
...
@@ -2,12 +2,13 @@ SHELL=/bin/sh
PATH
=/
usr
/
bin
:/
usr
/
sbin
:/
sbin
:/
bin
PATH
=/
usr
/
bin
:/
usr
/
sbin
:/
sbin
:/
bin
MAILTO
=
root
MAILTO
=
root
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
grid
-
sr
--
verbose
--
logfile
=/
opt
/
slapos
/
slapgrid
-
sr
.
log
--
pidfile
=/
opt
/
slapos
/
slapgrid
-
sr
.
pid
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapgrid
-
sr
.
log
2
>&
1
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
os
node
software
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
software
.
log
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
grid
-
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
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
os
node
instance
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
instance
.
log
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapgrid
-
ur
--
maximal_delay
=
3600
--
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
;
SLAPOS_REPORT_COMMAND
=
"/opt/slapos/bin/slapos node report --maximal_delay=3600 --verbose --logfile=/opt/slapos/slapos-report.log"
0
*
*
*
*
root
$
SLAPOS_REPORT_COMMAND
;
i
=
20
;
while
[
$?
!=
0
];
do
SLAPOS_REPORT_COMMAND
;
sleep
$(($
i
*
60
));
if
[
$
i
<
20
];
then
let
i
++;
fi
;
done
;
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
format
--
verbose
--
log_file
=/
opt
/
slapos
/
slapformat
.
log
-
c
/
etc
/
opt
/
slapos
/
slapos
.
cfg
>>
/
opt
/
slapos
/
slapformat
.
log
2
>&
1
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slap
os
node
format
>>
/
opt
/
slapos
/
slapformat
.
log
2
>&
1
*
*
*
*
*
root
if
[
-
f
/
etc
/
opt
/
slapos
/
openvpn
-
needed
];
then
ifconfig
tapVPN
|
grep
"Scope:Global"
>
/
dev
/
null
;
if
[
$?
=
0
];
then
ROUTES
=$(
ip
-
6
r
l
|
grep
default
|
awk
'
{
print
$
5
}
'
);
for
GW
in
$
ROUTES
;
do
if
[
!
$
GW
=
tapVPN
];
then
/
sbin
/
ip
-
6
route
del
default
dev
$
GW
;
fi
;
done
;
fi
;
fi
*
*
*
*
*
root
if
[
-
f
/
etc
/
opt
/
slapos
/
openvpn
-
needed
];
then
ifconfig
tapVPN
|
grep
"Scope:Global"
>
/
dev
/
null
;
if
[
$?
=
0
];
then
ROUTES
=$(
ip
-
6
r
l
|
grep
default
|
awk
'
{
print
$
5
}
'
);
for
GW
in
$
ROUTES
;
do
if
[
!
$
GW
=
tapVPN
];
then
/
sbin
/
ip
-
6
route
del
default
dev
$
GW
;
fi
;
done
;
fi
;
fi
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