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
14
Merge Requests
14
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
b650b430
Commit
b650b430
authored
Jan 17, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments to cron file
parent
49863f5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
slapos-node/template/slapos-node.cron.d
slapos-node/template/slapos-node.cron.d
+5
-1
No files found.
slapos-node/template/slapos-node.cron.d
View file @
b650b430
...
...
@@ -2,13 +2,17 @@ SHELL=/bin/sh
PATH
=/
usr
/
bin
:/
usr
/
sbin
:/
sbin
:/
bin
MAILTO
=
root
#
Run
"Installation/Destruction of Software Releases"
and
"Deploy/Start/Stop Partitions"
once
per
minute
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
software
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
software
.
log
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
instance
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
instance
.
log
#
slapgrid
-
ur
:
hardcoded
script
to
rerun
slapgrid
-
ur
if
failed
.
#
Run
"Destroy Partitions to be destroyed"
once
per
hour
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
;
#
Run
"Check/add IPs and so on"
once
per
hour
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
format
>>
/
opt
/
slapos
/
slapos
-
format
.
log
2
>&
1
#
Make
sure
we
have
only
good
network
routes
if
we
use
VPN
*
*
*
*
*
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