Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Webapps Deliverer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
Webapps Deliverer
Commits
079e453d
Commit
079e453d
authored
2 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
täglicher Restart per "webapps-deliverer-restart.timer"
parent
1be50af4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
install
+7
-1
7 additions, 1 deletion
install
server.py
+1
-0
1 addition, 0 deletions
server.py
webapps-deliverer-restart.service
+12
-0
12 additions, 0 deletions
webapps-deliverer-restart.service
webapps-deliverer-restart.timer
+11
-0
11 additions, 0 deletions
webapps-deliverer-restart.timer
with
31 additions
and
1 deletion
install
+
7
−
1
View file @
079e453d
...
@@ -19,7 +19,8 @@ FILE_LIST="./files.dat"
...
@@ -19,7 +19,8 @@ FILE_LIST="./files.dat"
DEST_USER
=
nobody
DEST_USER
=
nobody
DEST_GROUP
=
nobody
DEST_GROUP
=
nobody
FILES
=
"README.md server server.py requirements.in webapps-deliverer.service"
FILES
=
README.md server server.py requirements.in webapps-deliverer.service
\
webapps-deliverer-restart.timer webapps-deliverer-restart.service
rm
-rf
${
FILE_LIST
}
rm
-rf
${
FILE_LIST
}
for
f
in
${
FILES
}
;
do
for
f
in
${
FILES
}
;
do
...
@@ -39,10 +40,15 @@ pip3 install -r requirements.txt
...
@@ -39,10 +40,15 @@ pip3 install -r requirements.txt
deactivate
deactivate
chown -R
${
DEST_USER
}
.
${
DEST_GROUP
}
${
TARGET_PATH
}
chown -R
${
DEST_USER
}
.
${
DEST_GROUP
}
${
TARGET_PATH
}
systemctl link
\$
PWD/webapps-deliverer.service
systemctl link
\$
PWD/webapps-deliverer.service
systemctl link
\$
PWD/webapps-deliverer-restart.timer
systemctl link
\$
PWD/webapps-deliverer-restart.service
systemctl enable webapps-deliverer.service
systemctl enable webapps-deliverer.service
systemctl enable webapps-deliverer-restart.timer
systemctl daemon-reload
systemctl daemon-reload
systemctl restart webapps-deliverer.service
systemctl restart webapps-deliverer.service
systemctl restart webapps-deliverer-restart.timer
systemctl status webapps-deliverer.service
systemctl status webapps-deliverer.service
systemctl list-timers
EOF
EOF
exit
exit
This diff is collapsed.
Click to expand it.
server.py
+
1
−
0
View file @
079e453d
...
@@ -14,6 +14,7 @@ FLASK_ENV = sys.argv[3]
...
@@ -14,6 +14,7 @@ FLASK_ENV = sys.argv[3]
FLASK_DEBUG
=
sys
.
argv
[
4
]
FLASK_DEBUG
=
sys
.
argv
[
4
]
app
=
Flask
(
__name__
,
static_url_path
=
''
)
app
=
Flask
(
__name__
,
static_url_path
=
''
)
app
.
config
[
'
SEND_FILE_MAX_AGE_DEFAULT
'
]
=
0
app
.
url_map
.
strict_slashes
=
False
app
.
url_map
.
strict_slashes
=
False
CORS
(
app
)
CORS
(
app
)
...
...
This diff is collapsed.
Click to expand it.
webapps-deliverer-restart.service
0 → 100644
+
12
−
0
View file @
079e453d
[Unit]
Description
=
Restart the webapps deliverer server
#Documentation=
[Service]
Type
=
oneshot
WorkingDirectory
=
/usr/local/share/webapps-deliverer
EnvironmentFile
=
-/etc/environment
Environment
=
XDG_CACHE_HOME=/var/tmp
Environment
=
HOST=%H
ExecStart
=
/bin/bash -lc 'systemctl restart webapps-deliverer.service'
This diff is collapsed.
Click to expand it.
webapps-deliverer-restart.timer
0 → 100644
+
11
−
0
View file @
079e453d
[Unit]
Description=Restart the webapps deliverer server (Timer)
[Timer]
Persistent=false
OnCalendar=Mon..Fri *-*-* 20:00:17
[Install]
WantedBy=timers.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment