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
Lisa Casino
slapos.package
Commits
10eb2317
Commit
10eb2317
authored
Jan 17, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create any mail/output for cron entries
parent
57cf5ba5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
slapos-node/template/slapos-node.cron.d
slapos-node/template/slapos-node.cron.d
+5
-5
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+1
-1
No files found.
slapos-node/template/slapos-node.cron.d
View file @
10eb2317
SHELL
=/
bin
/
sh
PATH
=/
usr
/
bin
:/
usr
/
sbin
:/
sbin
:/
bin
MAILTO
=
root
MAILTO
=
""
#
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
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
software
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
software
.
log
>
/
dev
/
null
2
>&
1
*
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
instance
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
instance
.
log
>
/
dev
/
null
2
>&
1
#
Run
"Destroy Partitions to be destroyed"
once
per
hour
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
report
--
maximal_delay
=
3600
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
report
.
log
0
*
*
*
*
root
/
opt
/
slapos
/
bin
/
slapos
node
report
--
maximal_delay
=
3600
--
verbose
--
logfile
=/
opt
/
slapos
/
slapos
-
report
.
log
>
/
dev
/
null
2
>&
1
#
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
*
*
*
*
*
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
>
/
dev
/
null
2
>&
1
;
fi
;
done
;
fi
;
fi
slapprepare/slapprepare/script/slapos
View file @
10eb2317
...
...
@@ -125,7 +125,7 @@ let MINUTE=$RANDOM%%60;
echo
"""# BEWARE: This file will be automatically regenerated on each boot
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=
root
MAILTO=
""
$MINUTE
$HOUR
* * * root /usr/local/bin/slapupdate -v --slapos-configuration
$SLAPOS_CONFIGURATION
/slapos.cfg >> /opt/slapos/slapupdate.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