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
Thomas Gambier
slapos.package
Commits
a8d99d92
Commit
a8d99d92
authored
Jan 14, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logrotate service to deb/rpm slapos-node package
parent
babcb576
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletion
+29
-1
prepare_slapos_build.sh
prepare_slapos_build.sh
+2
-1
slapos-node/template/slapos-node.logrotate
slapos-node/template/slapos-node.logrotate
+24
-0
templates/debian/rules
templates/debian/rules
+1
-0
templates/slapos.spec.in
templates/slapos.spec.in
+2
-0
No files found.
prepare_slapos_build.sh
View file @
a8d99d92
...
@@ -53,8 +53,9 @@ osc add slapos.spec
...
@@ -53,8 +53,9 @@ osc add slapos.spec
# Add entry to changelog
# Add entry to changelog
cd
$TEMPLATES_DIRECTORY
/debian
cd
$TEMPLATES_DIRECTORY
/debian
dch
-pm
-v
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
--check-dirname-level
=
0
"New version of slapos (
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
)"
dch
-pm
-v
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
--check-dirname-level
=
0
"New version of slapos (
$VERSION
+
$RECIPE_VERSION
+
$RELEASE
)"
# Add cron
file
# Add cron
and logrotate files
cp
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
/template/slapos-node.cron.d
$TEMPLATES_DIRECTORY
/debian/cron.d
cp
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
/template/slapos-node.cron.d
$TEMPLATES_DIRECTORY
/debian/cron.d
cp
$CURRENT_DIRECTORY
/
$SLAPOS_ORGINAL_DIRECTORY
/template/slapos-node.logrotate
$TEMPLATES_DIRECTORY
/debian/slapos-node.logrotate
cd
$TEMPLATES_DIRECTORY
cd
$TEMPLATES_DIRECTORY
tar
-czf
debian.tar.gz debian
tar
-czf
debian.tar.gz debian
cd
$OBS_DIRECTORY
cd
$OBS_DIRECTORY
...
...
slapos-node/template/slapos-node.logrotate
0 → 100644
View file @
a8d99d92
# Generated by SlapOS. Assumes that slapos is installed in default location.
/opt/slapos/slapos-software.log /opt/slapos/slapos-instance.log /opt/slapos/slapos-report.log {
compress
dateext
daily
rotate 14
missingok
notifempty
create 640 root root
sharedscripts
endscript
}
/opt/slapos/slapos-format.log {
compress
dateext
daily
rotate 100
missingok
notifempty
create 640 root root
sharedscripts
endscript
}
templates/debian/rules
View file @
a8d99d92
...
@@ -65,6 +65,7 @@ binary-arch: build install
...
@@ -65,6 +65,7 @@ binary-arch: build install
# dh_installmime
# dh_installmime
dh_installinit
dh_installinit
dh_installcron
dh_installcron
dh_installlogrotate
dh_installman
dh_installman
dh_installinfo
dh_installinfo
# dh_undocumented
# dh_undocumented
...
...
templates/slapos.spec.in
View file @
a8d99d92
...
@@ -86,6 +86,8 @@ cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_numb
...
@@ -86,6 +86,8 @@ cd $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_numb
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/etc/cron.d/
mkdir -p $RPM_BUILD_ROOT/etc/cron.d/
cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/template/slapos-node.cron.d $RPM_BUILD_ROOT/etc/cron.d/slapos-node
cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/template/slapos-node.cron.d $RPM_BUILD_ROOT/etc/cron.d/slapos-node
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d/
cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/template/slapos-node.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/slapos.logrotate.conf
mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/
mkdir -p $RPM_BUILD_ROOT/etc/systemd/system/
cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/template/slapos-node.service %{buildroot}/etc/systemd/system/
cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+%{release_number}/template/slapos-node.service %{buildroot}/etc/systemd/system/
...
...
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